Exemplo n.º 1
0
        public static DialogResult AddDialog(Form form, FormStartPosition position)
        {
//			form.MinimizeBox = form.MaximizeBox = form.ShowInTaskbar = false;
//			form.StartPosition = position;
//			form.FormBorderStyle = FormBorderStyle.FixedDialog;
//			form.KeyPreview = true;
//			form.KeyDown += delegate(object sender, KeyEventArgs e) {
//				if (e.KeyCode == Keys.Escape) {
//					form.Close();
//				}
//			};
//			return form.ShowDialog(this);
            return(workbench.AddDialog(form, position));
        }