public FilterResultsViewModel() { this.InitializeViewModelCommand = new RelayCommand(this.InitializeViewModelExecute); this.savedSearchHelper = new DeferredSearchHelper("SearchInSavedString", this, this.SearchInSaved); this.submittedSearchHelper = new DeferredSearchHelper("SearchInSubmittedString", this, this.SearchInSubmitted); this.NavigateBackCommand = new RelayCommand(this.NavigateBackExecute); }
/// <summary> /// Initializes a new instance of the MySurveysViewModel class. /// </summary> public MySurveysViewModel() { this.InitializeViewModelCommand = new RelayCommand(this.InitializeViewModelExecute); this.NavigationBackCommand = new RelayCommand(this.NavigationBackExecute); this.DeleteSurveyCommand = new RelayCommand <Survey>(this.DeleteSurveyExecute); this.searchHelper = new DeferredSearchHelper("SearchText", this, this.SearchSurveys); _surveyRepository = new SurveyRepository(); }
public ResponseSetsViewModel(ResponseSetsType type) { this.currentType = type; this.InitializeViewModelCommand = new RelayCommand(this.InitializeViewModelExecute); this.searchHelper = new DeferredSearchHelper("SearchString", this, this.Search); this.NavigateBackCommand = new RelayCommand(this.NavigateBackExecute); this.DeleteResponseSetCommand = new RelayCommand <ResponseSet>(this.DeleteResponseSetExecute); this.OpenDuplicateCommand = new RelayCommand <int>(this.OpenDuplicateExecute); }