コード例 #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
 protected override void ExecuteImpl(object parameter)
 {
     var viewModel = new FindSymbolViewModel(_state.AllDeclarations.Where(item => !item.IsBuiltIn), _iconCache);
     var view      = new FindSymbolDialog(viewModel);
     {
         viewModel.Navigate += (sender, e) => { view.Hide(); };
         viewModel.Navigate += OnDialogNavigate;
         view.ShowDialog();
         _navigateCommand.Execute(_selected);
     }
 }
コード例 #3
0
 protected override void OnExecute(object parameter)
 {
     var viewModel = new FindSymbolViewModel(_state.AllUserDeclarations);
     var view      = new FindSymbolDialog(viewModel);
     {
         viewModel.Navigate += (sender, e) => { view.Hide(); };
         viewModel.Navigate += OnDialogNavigate;
         view.ShowDialog();
         _navigateCommand.Execute(_selected);
     }
 }
コード例 #4
0
ファイル: RefactorMenu.cs プロジェクト: yadimon/Rubberduck
        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();
            }
        }