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(""); } }
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(""); } }
private void button2_Click(object sender, EventArgs e) { FormMessageType frm = new FormMessageType(_config.ResponseMessageType); frm.ShowDialog(this); }
// 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; } }