Ejemplo n.º 1
0
        public static string ShowInputBox(string info, string defaultText)
        {
            formMessageBox frmmsgbox = new formMessageBox(info, false, true, "", "", defaultText, -1);

            frmmsgbox.TopMost = true;
            frmmsgbox.ShowDialog();
            return(frmmsgbox.returnText);
        }
Ejemplo n.º 2
0
        public static bool ShowMessageBox(string info, bool ShowYesNo = true, string YesButtonText = "Áno", string NoButtonText = "Nie", bool ShowInLowerLeftCorner = false, int AutoCloseInterval = -1)
        {
            formMessageBox frmmsgbox = new formMessageBox(info, ShowYesNo, false, YesButtonText, NoButtonText, "", AutoCloseInterval);

            frmmsgbox.TopMost = true;
            //if (ShowInLowerLeftCorner)
            //{
            //    frmmsgbox.StartPosition = FormStartPosition.Manual;
            //    frmmsgbox.Location = new Point(Program.termform.Left, Program.termform.Top + Program.termform.Height - frmmsgbox.Height - 20);
            //}
            frmmsgbox.ShowDialog();
            return(frmmsgbox.returnValue);
        }