async void closeModalStoryboard_Completed(object sender, EventArgs e) { if (_displayPreferencesViewModel.DisplayPreferences != null) { await _displayPreferencesViewModel.Save(); } base.CloseModal(); }
public void ShowDisplayPreferencesMenu() { var viewModel = new DisplayPreferencesViewModel(_displayPreferences, _presentationManager); var menu = new ViewWindow(viewModel, _options); menu.ShowModal(this.GetWindow()); viewModel.Save(); }
void BtnSort_Click(object sender, RoutedEventArgs e) { var viewModel = new DisplayPreferencesViewModel(_displayPreferences, _presentationManager); var menu = new SortWindow(viewModel, _options.SortOptions); menu.ShowModal(this.GetWindow()); viewModel.Save(); }