private void Find() { if (_findViewModel != null) { return; } _findViewModel = new FindViewModel(_dialogService, FindNext); _findViewModel.PropertyChanged += (sender, args) => _observedWords.ResetSearch(); _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null); }
private void Find() { if (_findViewModel != null) { return; } _findViewModel = new FindViewModel(_dialogService, FindNext); _findViewModel.PropertyChanged += (sender, args) => _startVarietyMeaning = null; _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null); }
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); }
private void Find() { if (_findViewModel != null) return; _findViewModel = new FindViewModel(_dialogService, FindNext); _findViewModel.PropertyChanged += (sender, args) => _startVarietyMeaning = null; _dialogService.ShowModelessDialog(this, _findViewModel, () => _findViewModel = null); }