コード例 #1
0
ファイル: Error.cs プロジェクト: dstrucl/Tangenta40
 public static void Show(Form pOwner, string ErrorMessage, string sErrorTitle)
 {
     LogFile.Write(LogFile.LOG_LEVEL_RUN_RELEASE, "E", ErrorMessage);
     ErrorDialog errdlg = new ErrorDialog(ErrorMessage, sErrorTitle, pOwner, SystemIcons.Error);
     errdlg.TopMost = true;
     errdlg.ShowDialog(pOwner);
 }
コード例 #2
0
ファイル: Error.cs プロジェクト: dstrucl/Tangenta40
 public static void Show(string ErrorMessage, string sErrorTitle, Icon icon)
 {
     LogFile.Write(LogFile.LOG_LEVEL_RUN_RELEASE, "E", ErrorMessage);
     ErrorDialog errdlg = new ErrorDialog(ErrorMessage, sErrorTitle, null, icon);
     errdlg.TopMost = true;
     errdlg.ShowDialog();
 }
コード例 #3
0
ファイル: Error.cs プロジェクト: dstrucl/Tangenta40
 public static void Show(string ErrorMessage)
 {
     LogFile.Write(LogFile.LOG_LEVEL_RUN_RELEASE, "E", ErrorMessage);
     ErrorDialog errdlg = new ErrorDialog(ErrorMessage,"Error",null,SystemIcons.Error);
     errdlg.TopMost = true;
     errdlg.ShowDialog();
 }
コード例 #4
0
ファイル: Error.cs プロジェクト: dstrucl/Tangenta40
        public static void Show(Form pOwner, string ErrorMessage, string sErrorTitle,System.Windows.Forms.MessageBoxButtons MB_buttons, System.Windows.Forms.MessageBoxIcon MB_Icon)
        {
            LogFile.Write(LogFile.LOG_LEVEL_RUN_RELEASE, "E", ErrorMessage);
            Icon icon = null;
            switch (MB_Icon)
            {
                case System.Windows.Forms.MessageBoxIcon.None:
                    icon = null;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Error:
                    icon = SystemIcons.Error;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Question:
                    icon = SystemIcons.Question;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Exclamation:
                    icon = SystemIcons.Exclamation;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Information:
                    icon = SystemIcons.Information;
                    break;

            }
            ErrorDialog errdlg = new ErrorDialog(ErrorMessage, sErrorTitle, pOwner, icon);
            errdlg.TopMost = true;
            errdlg.ShowDialog(pOwner);
        }
コード例 #5
0
ファイル: Error.cs プロジェクト: dstrucl/Tangenta40
        public static void Show(string sText, string sTitle, MessageBoxButtons messageBoxButtons, MessageBoxIcon messageBoxIcon)
        {
            LogFile.Write(LogFile.LOG_LEVEL_RUN_RELEASE, "E", sText);
            Icon icon = null;
            switch (messageBoxIcon)
            {
                case System.Windows.Forms.MessageBoxIcon.None:
                    icon = null;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Error:
                    icon = SystemIcons.Error;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Question:
                    icon = SystemIcons.Question;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Exclamation:
                    icon = SystemIcons.Exclamation;
                    break;

                case System.Windows.Forms.MessageBoxIcon.Information:
                    icon = SystemIcons.Information;
                    break;

            }
            ErrorDialog errdlg = new ErrorDialog(sText, sTitle, null, messageBoxButtons, icon);
            errdlg.TopMost = true;
            errdlg.ShowDialog();
        }