예제 #1
0
        private void Find()
        {
            if (_findViewModel != null)
            {
                return;
            }

            _findViewModel = new FindViewModel(_dialogService, FindNext);
            _findViewModel.PropertyChanged += (sender, args) => _observedWords.ResetSearch();
            _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null);
        }
예제 #2
0
        private void Find()
        {
            if (_findViewModel != null)
            {
                return;
            }

            _findViewModel = new FindViewModel(_dialogService, FindNext);
            _findViewModel.PropertyChanged += (sender, args) => _startVarietyMeaning = null;
            _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null);
        }
예제 #3
0
            public void OpenFindDialog()
            {
                SetupWordPairsViews();

                _dialogService.ShowModelessDialog(_varietyPairs, Arg.Do<FindViewModel>(vm => _findViewModel = vm), Arg.Any<Action>());
                _varietyPairs.FindCommand.Execute(null);
            }
        private void Find()
        {
            if ( _findViewModel != null)
                return;

            _findViewModel = new FindViewModel(_dialogService, FindNext);
            _findViewModel.PropertyChanged += (sender, args) => _observedWordPairs.ResetSearch();
            _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null);
        }
 public void OpenFindDialog()
 {
     _dialogService.ShowModelessDialog(_wordListsViewModel, Arg.Do<FindViewModel>(vm => _findViewModel = vm), Arg.Any<Action>());
     _wordListsViewModel.FindCommand.Execute(null);
 }
예제 #6
0
        private void Find()
        {
            if (_findViewModel != null)
                return;

            _findViewModel = new FindViewModel(_dialogService, FindNext);
            _findViewModel.PropertyChanged += (sender, args) => _startVarietyMeaning = null;
            _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null);
        }