void HotKeyEditorHide_Click(object sender, RoutedEventArgs e) { HotKeyEditor.viewModel.UpdateCurrentSelection(); //to capture changes if any HotKeysMapping.Save(HotKeyEditor.viewModel.HotKeys); viewModel.RefreshHotKeysView(); }
void Window_Closed(object sender, EventArgs e) { viewModel.Process(); viewModel.Save(); HotKeysMapping.Save(HotKeyEditor.viewModel.HotKeys); }