Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        public static string ShowDialog(Form p,
                                        string lab1, string defaultValue1, string caption, Icon ic,
                                        bool multiline   = false,
                                        string tooltip   = null,
                                        bool cursoratend = false,
                                        int widthboxes   = 200, // sizes based on standard dialog size of 8, scaled up
                                        int heightboxes  = -1)
        {
            List <string> r = PromptMultiLine.ShowDialog(p, caption, ic, new string[] { lab1 },
                                                         new string[] { defaultValue1 }, multiline, tooltip != null ? new string[] { tooltip } : null, cursoratend, widthboxes, heightboxes);

            return(r?[0]);
        }
Ejemplo n.º 4
0
        public static string ShowDialog(Form p,
                            string lab1, string defaultValue1, string caption, Icon ic, 
                            bool multiline = false, 
                            string tooltip = null, 
                            int width = 600, 
                            int vspacing  = -1,
                            bool cursoratend = false)
        {
            List<string> r = PromptMultiLine.ShowDialog(p, caption, ic, new string[] { lab1 }, 
                    new string[] { defaultValue1 }, multiline, tooltip != null ? new string[] { tooltip } : null , width, vspacing , cursoratend);

            return r?[0];
        }