public static InputBox Show(IWin32Window window, string title, InputBoxItem item, InputBoxButtons buttons) { dialogForm dialog = new dialogForm(title, new InputBoxItem[] { item }, buttons); dialog.ShowDialog(window); return(new InputBox(dialog)); }
public static InputBox Show(string title, InputBoxItem item) { dialogForm dialog = new dialogForm(title, new InputBoxItem[] { item }, InputBoxButtons.OK); dialog.ShowDialog(); return(new InputBox(dialog)); }
public static InputBoxItem[] fillItems(string label, string text) { InputBoxItem[] items = new InputBoxItem[] { new InputBoxItem(label, text) }; return(items); }
public static InputBox Show(IWin32Window window, string title, string[] labels, InputBoxButtons buttons) { InputBoxItem[] items = new InputBoxItem[labels.Length]; for (int i = 0; i < labels.Length; i++) { items[i] = new InputBoxItem(labels[i]); } dialogForm dialog = new dialogForm(title, items, buttons); dialog.ShowDialog(window); return(new InputBox(dialog)); }