diff --git a/PcgsInvUi/ViewModels/MainWindowViewModel.cs b/PcgsInvUi/ViewModels/MainWindowViewModel.cs index a13914c..ad046d2 100644 --- a/PcgsInvUi/ViewModels/MainWindowViewModel.cs +++ b/PcgsInvUi/ViewModels/MainWindowViewModel.cs @@ -40,8 +40,6 @@ public class MainWindowViewModel : ViewModelBase { public ReactiveCommand DeleteCommand { get; } public Interaction ShowDeleteWindow { get; } - public ReactiveCommand FindCommand { get; } - public Interaction ShowFindWindow { get; } public ReactiveCommand ExportCommand { get; } public Interaction ShowExportWindow { get; } @@ -91,18 +89,6 @@ public class MainWindowViewModel : ViewModelBase { } }); - // Set up the ability to open the find window. - ShowFindWindow = new Interaction(); - var findEnabled = this.WhenAnyValue(x => x.CoinCollection.Count, - x => x > 0); - FindCommand = ReactiveCommand.CreateFromTask(async () => { - var findViewModel = new FindWindowViewModel(); - var result = await ShowFindWindow.Handle(findViewModel); - // Find the coin with the matching ID. The issue is that there could be multiple - so we need to return a list. - // Perhaps a secondary viewmodel? - return new Coin(); - }, findEnabled); - // Subscribe to SidebarContent.OkCommand, which is an IObservable<(int, string, int)> // This is the same as the above, but with a different syntax. newViewModel.OkCommand diff --git a/PcgsInvUi/Views/MainWindow.axaml b/PcgsInvUi/Views/MainWindow.axaml index 94f4331..fafc7dd 100644 --- a/PcgsInvUi/Views/MainWindow.axaml +++ b/PcgsInvUi/Views/MainWindow.axaml @@ -65,9 +65,6 @@ DockPanel.Dock="Left">