public void MessageShower(string title, string message, string icon) { MessageBoxIcon msgIcon; if (MessageBoxIcon.TryParse(icon, true, out msgIcon)) { MessageBox.Show(message, title, MessageBoxButtons.OK, msgIcon); } }