/// <summary> /// Creates a dialog that allows the modification of an existing set's items /// </summary> /// <param name="input">Set to modifiy</param> public static void EditSetDialog(Set input) { EditSetDlg dialog = new EditSetDlg(); dialog.Items = input; if (dialog.ShowDialog() == true) { input.Clear(); input.AddRange(dialog.Items); } }
/// <summary> /// Creates a dialog that allows graphical input of set items into a new set /// </summary> public static Set CreateSetDialog() { EditSetDlg dialog = new EditSetDlg(); if (dialog.ShowDialog() == true) { return(dialog.Items); } else { return(null); } }