Exemple #1
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.vpxyFile = new MadScience.Wrappers.VPXYFile();

            foreach (Control control in this.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox1.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox2.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox3.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            showBoundingBox();
            textBox1.Enabled = false;
            button5.Enabled  = false;
            button4.Enabled  = false;
            button2.Enabled  = false;
            textBox2.Enabled = false;
            button7.Enabled  = false;
            saveToolStripMenuItem.Enabled = false;
        }
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.vpxyFile = new MadScience.Wrappers.VPXYFile();

            foreach (Control control in this.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox1.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox2.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            foreach (Control control in this.groupBox3.Controls)
            {
                MadScienceSmall.Helpers.resetControl(control);
            }
            showBoundingBox();
            textBox1.Enabled = false;
            button5.Enabled = false;
            button4.Enabled = false;
            button2.Enabled = false;
            textBox2.Enabled = false;
            button7.Enabled = false;
            saveToolStripMenuItem.Enabled = false;
        }