コード例 #1
0
ファイル: Program.cs プロジェクト: ObcianskySpolok/ErasmDB
        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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: ObcianskySpolok/ErasmDB
        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);
        }