コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
        public static InputBoxItem[] fillItems(string label, string text)
        {
            InputBoxItem[] items = new InputBoxItem[]
            {
                new InputBoxItem(label, text)
            };

            return(items);
        }
コード例 #4
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));
        }