Esempio n. 1
0
        public static Tuple <string, string> ShowDialog(Form p,
                                                        string lab1, string lab2, string defaultValue1, string defaultValue2, string caption, bool multiline = false, string[] tooltip = null)
        {
            List <string> r = PromptMultiLine.ShowDialog(p, caption, new string[] { lab1, lab2 }, new string[] { defaultValue1, defaultValue2 }, multiline, tooltip);

            return((r != null) ? new Tuple <string, string>(r[0], r[1]) : null);
        }
Esempio n. 2
0
        public static string ShowDialog(Form p,
                                        string lab1, string defaultValue1, string caption, bool multiline = false, string tooltip = null)
        {
            List <string> r = PromptMultiLine.ShowDialog(p, caption, new string[] { lab1 }, new string[] { defaultValue1 }, multiline, tooltip != null ? new string[] { tooltip } : null);

            return((r != null) ? r[0] : null);
        }