123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections.ObjectModel;
- using System.Reactive;
- using ReactiveUI;
- namespace Avalonia.UI.ViewModels;
- public class InformationCriminals : ViewModelBase
- {
- private bool _isBusy;
- private string? _searchText;
- public string? SearchText
- {
- get => _searchText;
- set => this.RaiseAndSetIfChanged(ref _searchText, value);
- }
- public bool IsBusy
- {
- get => _isBusy;
- set => this.RaiseAndSetIfChanged(ref _isBusy, value);
- }
- private VID? _selectedVID;
- public ObservableCollection<VID> SearchResults { get; } = new();
- public VID? SelectedSomething
- {
- get => _selectedVID;
- set => this.RaiseAndSetIfChanged(ref _selectedVID, value);
- }
- public InformationCriminals()
- {
- SearchResults.Add(new VID());
- SearchResults.Add(new VID());
- SearchResults.Add(new VID());
- }
- public ReactiveCommand<Unit, VID?> BMCommand { get; }
-
- BMCommand = ReactiveCommand.Create(() =>
- {
- return SelectedAlbum;
- });
- }
|