public static DialogResult Run(Control content, string title, GenericDialogType type) { var win = new GenericDialogForm(content, title); switch (type) { case GenericDialogType.OkCancel: break; case GenericDialogType.Close: win.btnOk.Visible = false; win.btnCancel.Text = Texts.Get("s_close"); break; } return(win.ShowDialogEx()); }
public static DialogResult ShowGenericDialog(this Control content, string title, GenericDialogType type) { return(GenericDialogForm.Run(content, title, type)); }