public CatalogSearchWindow(CatalogSearchViewModel vm)
        {
            viewModel = vm;
            viewModel.CatalogSearchView = this;
            DataContext = viewModel;

            InitializeComponent();
        }
예제 #2
0
        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();
        }
예제 #3
0
 public NavigateCommand(CatalogSearchViewModel viewModel) : base(viewModel)
 {
 }
예제 #4
0
 protected CommandBase(CatalogSearchViewModel viewModel)
 {
     ViewModel = viewModel;
 }