/// <summary> /// Display a window for creating a new File Sorting Category. /// </summary> /// <param name="owner"></param> /// <param name="editing">The FileCategory being edited, or null if creating a new Category.</param> public void EditCategoryDialog(ViewModelBase parentModel, FileCategory editing = null) { EditCategoryVM newCategory = new EditCategoryVM(this.CategoryManager.Current, editing); EditCategoryWindow win = new EditCategoryWindow(); this.InitView(win, newCategory, parentModel); win.Show(); } //
public void ShowEditCategoryWindow() { var editCategory = new EditCategoryWindow(); editCategory.Show(); }