public CatalogSearchWindow(CatalogSearchViewModel vm) { viewModel = vm; viewModel.CatalogSearchView = this; DataContext = viewModel; InitializeComponent(); }
private void OpenSearch(object obj) { Guid?currentRuleApp = null; try { currentRuleApp = ((RuleRepositoryDefBase)SelectionManager.SelectedItem).ThisRuleApp.Guid; } catch { } var viewModel = new CatalogSearchViewModel(new CatalogSearchSettings(RuleApplicationService.Connection, currentRuleApp), PerformNavigate); var window = new CatalogSearchWindow(viewModel) { Owner = Application.Current.MainWindow }; window.Show(); }
public NavigateCommand(CatalogSearchViewModel viewModel) : base(viewModel) { }
protected CommandBase(CatalogSearchViewModel viewModel) { ViewModel = viewModel; }