public static DialogResult show(string title, string mgs) { var c = new Comformation(); c.label_title.Text = title; c.label_message.Text = mgs; return(c.ShowModal()); }
public static void show(string title, string mgs, int a = 0) { var c = new Comformation(); c.label_title.Text = title; c.label_message.Text = mgs; c.button_save.Hide(); c.button_cancel.Text = "Close"; c.ShowModal(); }
public static DialogResult ShowModal(string title, string message, bool showcancel = false) { var n = new Comformation(); n.label_title.Text = title; n.label_description.Text = message; n.button_cancel.Visible = showcancel; var t = new Modal(n); return(t.ShowDialog()); }