示例#1
0
    public static InputBox Show(IWin32Window window, string title, InputBoxItem[] items, InputBoxButtons buttons)
    {
        dialogForm dialog = new dialogForm(title, items, buttons);

        dialog.ShowDialog(window);
        return(new InputBox(dialog));
    }
示例#2
0
    public static InputBox Show(string title, string label, string text)
    {
        dialogForm dialog = new dialogForm(title, new InputBoxItem[] { new InputBoxItem(label, text) }, InputBoxButtons.OK);

        dialog.ShowDialog();
        return(new InputBox(dialog));
    }
示例#3
0
    public static InputBox Show(string title, InputBoxItem[] items)
    {
        dialogForm dialog = new dialogForm(title, items, InputBoxButtons.OK);

        dialog.ShowDialog();
        return(new InputBox(dialog));
    }
示例#4
0
    public static InputBox Show(IWin32Window window, string title, InputBoxItem item)
    {
        dialogForm dialog = new dialogForm(title, new InputBoxItem[] { item }, InputBoxButtons.OK);

        dialog.ShowDialog(window);
        return(new InputBox(dialog));
    }
示例#5
0
    public static InputBox Show(IWin32Window window, string title, string label, string text, InputBoxButtons buttons)
    {
        dialogForm dialog = new dialogForm(title, new InputBoxItem[] { new InputBoxItem(label, text) }, buttons);

        dialog.ShowDialog(window);
        return(new InputBox(dialog));
    }
示例#6
0
        public static InputDialog Show(string title, string label, InputBoxButtons buttons)
        {
            dialogForm dialog = new dialogForm(title, new InputDialogItem[] { new InputDialogItem(label) }, buttons);

            dialog.ShowDialog();
            return(new InputDialog(dialog));
        }
示例#7
0
    public static InputBox Show(string title, InputBoxItem item, InputBoxButtons buttons)
    {
        dialogForm dialog = new dialogForm(title, new InputBoxItem[] { item }, buttons);

        dialog.ShowDialog();
        return(new InputBox(dialog));
    }
示例#8
0
        public static InputDialog Show(IWin32Window window, string title, InputDialogItem item, InputBoxButtons buttons)
        {
            dialogForm dialog = new dialogForm(title, new InputDialogItem[] { item }, buttons);

            dialog.ShowDialog(window);
            return(new InputDialog(dialog));
        }
示例#9
0
        public static InputDialog Show(IWin32Window window, string title, string label)
        {
            dialogForm dialog = new dialogForm(title, new InputDialogItem[] { new InputDialogItem(label) }, InputBoxButtons.OK);

            dialog.ShowDialog(window);
            return(new InputDialog(dialog));
        }
示例#10
0
        public static InputDialog Show(string title, InputDialogItem item)
        {
            dialogForm dialog = new dialogForm(title, new InputDialogItem[] { item }, InputBoxButtons.OK);

            dialog.ShowDialog();
            return(new InputDialog(dialog));
        }
示例#11
0
        public static InputDialog Show(string title, InputDialogItem[] items, InputBoxButtons buttons)
        {
            dialogForm dialog = new dialogForm(title, items, buttons);

            dialog.StartPosition = FormStartPosition.CenterScreen;
            dialog.ShowDialog();
            return(new InputDialog(dialog));
        }
示例#12
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));
    }
示例#13
0
        public static InputDialog Show(string title, string[] labels)
        {
            InputDialogItem[] items = new InputDialogItem[labels.Length];
            for (int i = 0; i < labels.Length; i++)
            {
                items[i] = new InputDialogItem(labels[i]);
            }

            dialogForm dialog = new dialogForm(title, items, InputBoxButtons.OK);

            dialog.ShowDialog();
            return(new InputDialog(dialog));
        }