/// <summary> /// Constructor /// </summary> public ManualSearchViewModel(ListSearchViewModel listSearchViewModel) { this.listSearchViewModel = listSearchViewModel; this.OpenBrowserCommand = new RelayCommand(OpenBrowser); this.SearchCommand = new RelayCommand(DoSearch); this.BrowseCommand = new RelayCommand(OpenFileDialogBrowser); OnPresented(); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel( ListSearchViewModel listSearchViewModel, ManualSearchViewModel manualSearchViewModel, SettingsViewModel settingsViewModel) { this.Version = ApplicationDeployment.IsNetworkDeployed ? $"ver. {ApplicationDeployment.CurrentDeployment.CurrentVersion}" : "ver. DEBUG"; this.ListSearchViewModel = listSearchViewModel; this._manualSearchViewModel = manualSearchViewModel; this.SettingsViewModel = settingsViewModel; this.Width = settingsViewModel.Width; this.Height = settingsViewModel.Height; ListSearchCommand = new RelayCommand(OpenListSearch); InputSearchCommand = new RelayCommand(OpenInputSearch); SettingsCommand = new RelayCommand(OpenSettings); OpenListSearch(); //Default open window }