示例#1
0
 private void defineNewProcToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditProcDefForm form = new EditProcDefForm();
     EditProcDefController subController = controller.NewProcDef(() => form.MakeTextBox(), form.GetEraseButton());
     form.SetController(subController);
     form.StartPosition = FormStartPosition.CenterParent;
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         controller.DefineNewProc(subController.Model, "My blocks");
     }
 }
示例#2
0
        private void defineNewProcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditProcDefForm       form          = new EditProcDefForm();
            EditProcDefController subController = controller.NewProcDef(() => form.MakeTextBox(), form.GetEraseButton());

            form.SetController(subController);
            form.StartPosition = FormStartPosition.CenterParent;
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                controller.DefineNewProc(subController.Model, "My blocks");
            }
        }