상속: INotifyPropertyChanged
예제 #1
0
 public override void Execute(object parameter)
 {
     var viewModel = new FindSymbolViewModel(_state.AllDeclarations.Where(item => !item.IsBuiltIn), _iconCache);
     using (var view = new FindSymbolDialog(viewModel))
     {
         viewModel.Navigate += (sender, e) => { _navigateCommand.Execute(e); view.Hide(); };
         view.ShowDialog();
     }
 }
예제 #2
0
 public FindSymbolDialog(FindSymbolViewModel viewModel)
     : this()
 {
     findSymbolControl1.DataContext = viewModel;
     viewModel.Navigate            += viewModel_Navigate;
 }
예제 #3
0
 public FindSymbolDialog(FindSymbolViewModel viewModel)
     : this()
 {
     findSymbolControl1.DataContext = viewModel;
     viewModel.Navigate += viewModel_Navigate;
 }
예제 #4
0
 private void FindSymbol()
 {
     var progress = new ParsingProgressPresenter();
     var result = progress.Parse(_parser, IDE.ActiveVBProject);
     var declarations = result.Declarations;
     var vm = new FindSymbolViewModel(declarations.Items.Where(item => !item.IsBuiltIn), _iconCache);
     using (var view = new FindSymbolDialog(vm))
     {
         view.Navigate += view_Navigate;
         view.ShowDialog();
     }
 }