/// <summary> /// Shows the window for new families /// </summary> public static void ShowWindow() { PlantFamily family = new PlantFamily("", ""); EditPlantFamilyWindow win = new EditPlantFamilyWindow(family, true); win.ShowAll(); }
/// <summary> /// Shows the window for families that already exist. /// </summary> public static void ShowWindow(PlantFamily family, bool create = false) { EditPlantFamilyWindow win = new EditPlantFamilyWindow(family, create); win.ShowAll(); }
protected override void Edit() { this.Destroy(); EditPlantFamilyWindow.ShowWindow(Family, Create); }