Ejemplo n.º 1
0
 static MyMsg()
 {
     _info     = LanguageHelper.GetMsg(LMSG.titleInfo);
     _warning  = LanguageHelper.GetMsg(LMSG.titleWarning);
     _error    = LanguageHelper.GetMsg(LMSG.titleError);
     _question = LanguageHelper.GetMsg(LMSG.titleQuestion);
 }
Ejemplo n.º 2
0
 public static bool Question(LMSG msg)
 {
     if (MessageBox.Show(LanguageHelper.GetMsg(msg), question,
                         MessageBoxButtons.OKCancel,
                         MessageBoxIcon.Question) == DialogResult.OK)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
 public static void Error(LMSG msg)
 {
     MessageBox.Show(LanguageHelper.GetMsg(msg), _error,
                     MessageBoxButtons.OK, MessageBoxIcon.Error);
 }
Ejemplo n.º 4
0
 public static void Warning(LMSG msg)
 {
     MessageBox.Show(LanguageHelper.GetMsg(msg), _warning,
                     MessageBoxButtons.OK, MessageBoxIcon.Warning);
 }
Ejemplo n.º 5
0
 public static void Show(LMSG msg)
 {
     MessageBox.Show(LanguageHelper.GetMsg(msg), _info,
                     MessageBoxButtons.OK, MessageBoxIcon.Information);
 }