Use partial properties

This commit is contained in:
Tyrrrz
2025-03-18 20:06:44 +02:00
parent fca6729ef0
commit deca3fc1bf
5 changed files with 58 additions and 124 deletions

View File

@@ -38,22 +38,22 @@ public partial class DashboardViewModel : ViewModelBase
[NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))]
[NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))]
[NotifyCanExecuteChangedFor(nameof(ExportCommand))]
private bool _isBusy;
public partial bool IsBusy { get; set; }
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))]
private string? _token;
public partial string? Token { get; set; }
[ObservableProperty]
private IReadOnlyList<Guild>? _availableGuilds;
public partial IReadOnlyList<Guild>? AvailableGuilds { get; set; }
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))]
[NotifyCanExecuteChangedFor(nameof(ExportCommand))]
private Guild? _selectedGuild;
public partial Guild? SelectedGuild { get; set; }
[ObservableProperty]
private IReadOnlyList<ChannelConnection>? _availableChannels;
public partial IReadOnlyList<ChannelConnection>? AvailableChannels { get; set; }
public DashboardViewModel(
ViewModelManager viewModelManager,