Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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();
        }