示例#1
0
        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());
        }
示例#2
0
 public static DialogResult ShowGenericDialog(this Control content, string title, GenericDialogType type)
 {
     return(GenericDialogForm.Run(content, title, type));
 }