Beispiel #1
0
        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));
        }
Beispiel #2
0
        public static InputBox Show(string title, InputBoxItem item)
        {
            dialogForm dialog = new dialogForm(title, new InputBoxItem[] { item }, InputBoxButtons.OK);

            dialog.ShowDialog();
            return(new InputBox(dialog));
        }
Beispiel #3
0
        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));
        }