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

            InitializeComponent();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public NavigateCommand(CatalogSearchViewModel viewModel) : base(viewModel)
 {
 }
Exemplo n.º 4
0
 protected CommandBase(CatalogSearchViewModel viewModel)
 {
     ViewModel = viewModel;
 }