/// <summary> /// Modify the selected category in a new window /// </summary> public void ModifyInteractive() { // create a new viewmodel with the selected category var modifyCategory = new CategoryViewModel(MainViewModel, InteractionMode.Modify, SelectedCategory); // open the window to modify windowService.OpenCategoryWindow(modifyCategory); // copy the value back, if it was modified if (modifyCategory.IsModified) { SelectedCategory.Copy(modifyCategory.SelectedCategory); } }