Esempio n. 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");
     }
 }
Esempio n. 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");
            }
        }