Example #1
0
 private string getSemanticCss(FormMessageType type)
 {
     if (type == FormMessageType.Error)
     {
         return("semantic-error");
     }
     else if (type == FormMessageType.Success)
     {
         return("semantic-success");
     }
     else if (type == FormMessageType.Info)
     {
         return("semantic-info");
     }
     else if (type == FormMessageType.Warning)
     {
         return("semantic-warning");
     }
     else
     {
         return("");
     }
 }
Example #2
0
 private string getSemanticIcon(FormMessageType type)
 {
     if (type == FormMessageType.Error)
     {
         return("icon-content-error");
     }
     else if (type == FormMessageType.Success)
     {
         return("icon-content-check");
     }
     else if (type == FormMessageType.Info)
     {
         return("icon-content-info");
     }
     else if (type == FormMessageType.Warning)
     {
         return("icon-content-warning");
     }
     else
     {
         return("");
     }
 }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            FormMessageType frm = new FormMessageType(_config.ResponseMessageType);

            frm.ShowDialog(this);
        }
Example #4
0
 // calls the project standard (Persian) messagebox
 public static DialogResult ShowStandardMsgBox(FormMessageType messageType, string title, string text)
 {
     using (FormMessage msgBox = new FormMessage(title, text, messageType))
     {
         msgBox.ShowDialog();
         return msgBox.DialogResult;
     }
 }