Example #1
0
        private void ShowOcrMethodGroupBox(GroupBox groupBox)
        {
            GroupBoxTesseractMethod.Visible = false;
            groupBoxImageCompareMethod.Visible = false;
            groupBoxModiMethod.Visible = false;
            groupBoxNOCR.Visible = false;

            groupBox.Visible = true;
            groupBox.BringToFront();
            groupBox.Left = comboBoxOcrMethod.Left;
            groupBox.Top = 50;
        }
        private void loadForm1()
        {
            this.Size = new Size(959, 595 + 24);
            panel1.Controls.Clear();
            // Tesuturi:

            groupBox1 = new GroupBox();
            groupBox1.Location = new Point(10, 19 + 24);
            groupBox1.Text = "Ţesuturi";
            groupBox1.Font = new Font("Verdana", 14.45f);
            groupBox1.ForeColor = Color.White;
            groupBox1.Size = new Size(313, 202);
            groupBox1.Visible = true;
            groupBox1.Enabled = true;
            groupBox1.BringToFront();
            groupBox1.BackColor = Color.Transparent;

            //button1

            button1 = new Button();
            button1.Location = new Point(5, 32);
            button1.Text = "Epitelial";
            button1.Font = new Font("Verdana", 11.45f);
            button1.ForeColor = Color.Black;
            button1.Size = new Size(121, 34);
            button1.Visible = true;
            button1.Enabled = true;
            button1.BringToFront();
            button1.Click += this.button1_Click;
            button1.MouseEnter += this.button1_MouseEnter;
            button1.MouseLeave += this.button_MouseLeave;

            //Button2

            button2 = new Button();
            button2.Location = new Point(5, 72);
            button2.Text = "Conjunctiv";
            button2.Font = new Font("Verdana", 11.45f);
            button2.ForeColor = Color.Black;
            button2.Size = new Size(121, 34);
            button2.Visible = true;
            button2.Enabled = true;
            button2.BringToFront();
            button2.Click += this.button2_Click;
            button2.MouseEnter += this.button2_MouseEnter;
            button2.MouseLeave += this.button_MouseLeave;

            //Button3

            button3 = new Button();
            button3.Location = new Point(5, 112);
            button3.Text = "Muscular";
            button3.Font = new Font("Verdana", 11.45f);
            button3.ForeColor = Color.Black;
            button3.Size = new Size(121, 34);
            button3.Visible = true;
            button3.Enabled = true;
            button3.BringToFront();
            button3.Click += this.button3_Click;
            button3.MouseEnter += this.button3_MouseEnter;
            button3.MouseLeave += this.button_MouseLeave;

            //Button4

            button4 = new Button();
            button4.Location = new Point(5, 152);
            button4.Text = "Nervos";
            button4.Font = new Font("Verdana", 11.45f);
            button4.ForeColor = Color.Black;
            button4.Size = new Size(121, 34);
            button4.Visible = true;
            button4.Enabled = true;
            button4.BringToFront();
            button4.Click += this.button4_Click;
            button4.MouseEnter += this.button4_MouseEnter;
            button4.MouseLeave += this.button_MouseLeave;

            //PictureBox1

            pictureBox1 = new PictureBox();
            pictureBox1.Location = new Point(140, 29);
            pictureBox1.BackColor = Color.Transparent;
            pictureBox1.Size = new Size(157, 156);
            pictureBox1.Visible = true;
            pictureBox1.Enabled = true;
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox1.BringToFront();

            // Aparate:

            groupBox2 = new GroupBox();
            groupBox2.Location = new Point(497, 19 + 24);
            groupBox2.Text = "Aparate";
            groupBox2.Font = new Font("Verdana", 14.45f);
            groupBox2.ForeColor = Color.White;
            groupBox2.Size = new Size(443, 287);
            groupBox2.Visible = true;
            groupBox2.Enabled = true;
            groupBox2.BringToFront();
            groupBox2.BackColor = Color.Transparent;

            //button5

            button5 = new Button();
            button5.Location = new Point(5, 32);
            button5.Text = "Aparatul Digestiv";
            button5.Font = new Font("Verdana", 11.45f);
            button5.ForeColor = Color.Black;
            button5.Size = new Size(202, 34);
            button5.Visible = true;
            button5.Enabled = true;
            button5.BringToFront();
            button5.Click += this.button5_Click;
            button5.MouseEnter += this.button5_MouseEnter;
            button5.MouseLeave += this.buttonAparate_MouseLeave;

            //Button6

            button6 = new Button();
            button6.Location = new Point(5, 72);
            button6.Text = "Aparatul Respirator";
            button6.Font = new Font("Verdana", 11.45f);
            button6.ForeColor = Color.Black;
            button6.Size = new Size(202, 34);
            button6.Visible = true;
            button6.Enabled = true;
            button6.BringToFront();
            button6.Click += this.button6_Click;
            button6.MouseEnter += this.button6_MouseEnter;
            button6.MouseLeave += this.buttonAparate_MouseLeave;

            //Button7

            button7 = new Button();
            button7.Location = new Point(5, 112);
            button7.Text = "Aparatul Circulator";
            button7.Font = new Font("Verdana", 11.45f);
            button7.ForeColor = Color.Black;
            button7.Size = new Size(202, 34);
            button7.Visible = true;
            button7.Enabled = true;
            button7.BringToFront();
            button7.Click += this.button7_Click;
            button7.MouseEnter += this.button7_MouseEnter;
            button7.MouseLeave += this.buttonAparate_MouseLeave;

            //Button8

            button8 = new Button();
            button8.Location = new Point(5, 152);
            button8.Text = "Aparator Excretor";
            button8.Font = new Font("Verdana", 11.45f);
            button8.ForeColor = Color.Black;
            button8.Size = new Size(202, 34);
            button8.Visible = true;
            button8.Enabled = true;
            button8.BringToFront();
            button8.Click += this.button8_Click;
            button8.MouseEnter += this.button8_MouseEnter;
            button8.MouseLeave += this.buttonAparate_MouseLeave;

            //Button9

            button9 = new Button();
            button9.Location = new Point(5, 192);
            button9.Text = "Aparator Reproducator";
            button9.Font = new Font("Verdana", 11.45f);
            button9.ForeColor = Color.Black;
            button9.Size = new Size(202, 34);
            button9.Visible = true;
            button9.Enabled = true;
            button9.BringToFront();
            button9.Click += this.button9_Click;
            button9.MouseEnter += this.button9_MouseEnter;
            button9.MouseLeave += this.buttonAparate_MouseLeave;

            //Button10

            button10 = new Button();
            button10.Location = new Point(5, 232);
            button10.Text = "Aparator Locomotor";
            button10.Font = new Font("Verdana", 11.45f);
            button10.ForeColor = Color.Black;
            button10.Size = new Size(202, 34);
            button10.Visible = true;
            button10.Enabled = true;
            button10.BringToFront();
            button10.Click += this.button10_Click;
            button10.MouseEnter += this.button10_MouseEnter;
            button10.MouseLeave += this.buttonAparate_MouseLeave;

            //PictureBox2

            pictureBox2 = new PictureBox();
            pictureBox2.Location = new Point(212, 32);
            pictureBox2.BackColor = Color.Transparent;
            pictureBox2.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox2.Size = new Size(211, 234);
            pictureBox2.Visible = true;
            pictureBox2.Enabled = true;
            pictureBox2.BringToFront();

            // Organe de simt:

            groupBox3 = new GroupBox();
            groupBox3.Location = new Point(10, 251 + 24);
            groupBox3.Text = "Sensibilitatea si Organele de simt";
            groupBox3.Font = new Font("Verdana", 14.45f);
            groupBox3.ForeColor = Color.White;
            groupBox3.Size = new Size(446, 287);
            groupBox3.Visible = true;
            groupBox3.Enabled = true;
            groupBox3.BringToFront();
            groupBox3.BackColor = Color.Transparent;

            //button11

            button11 = new Button();
            button11.Location = new Point(5, 32);
            button11.Text = "Ochiul";
            button11.Font = new Font("Verdana", 11.45f);
            button11.ForeColor = Color.Black;
            button11.Size = new Size(202, 34);
            button11.Visible = true;
            button11.Enabled = true;
            button11.BringToFront();
            button11.Click += this.button11_Click;
            button11.MouseEnter += this.button11_MouseEnter;
            button11.MouseLeave += this.organeDeSimt_MouseLeave;

            //Button12

            button12 = new Button();
            button12.Location = new Point(5, 72);
            button12.Text = "Urechea";
            button12.Font = new Font("Verdana", 11.45f);
            button12.ForeColor = Color.Black;
            button12.Size = new Size(202, 34);
            button12.Visible = true;
            button12.Enabled = true;
            button12.BringToFront();
            button12.Click += this.button12_Click;
            button12.MouseEnter += this.button12_MouseEnter;
            button12.MouseLeave += this.organeDeSimt_MouseLeave;

            //Button13

            button13 = new Button();
            button13.Location = new Point(5, 112);
            button13.Text = "Pielea";
            button13.Font = new Font("Verdana", 11.45f);
            button13.ForeColor = Color.Black;
            button13.Size = new Size(202, 34);
            button13.Visible = true;
            button13.Enabled = true;
            button13.BringToFront();
            button13.Click += this.button13_Click;
            button13.MouseEnter += this.button13_MouseEnter;
            button13.MouseLeave += this.organeDeSimt_MouseLeave;

            //button14

            button14 = new Button();
            button14.Location = new Point(5, 152);
            button14.Text = "Limba";
            button14.Font = new Font("Verdana", 11.45f);
            button14.ForeColor = Color.Black;
            button14.Size = new Size(202, 34);
            button14.Visible = true;
            button14.Enabled = true;
            button14.BringToFront();
            button14.Click += this.button14_Click;
            button14.MouseEnter += this.button14_MouseEnter;
            button14.MouseLeave += this.organeDeSimt_MouseLeave;

            //button15

            button15 = new Button();
            button15.Location = new Point(5, 192);
            button15.Text = "Mucoasa Olfactiva";
            button15.Font = new Font("Verdana", 11.45f);
            button15.ForeColor = Color.Black;
            button15.Size = new Size(202, 34);
            button15.Visible = true;
            button15.Enabled = true;
            button15.BringToFront();
            button15.Click += this.button15_Click;
            button15.MouseEnter += this.button15_MouseEnter;
            button15.MouseLeave += this.organeDeSimt_MouseLeave;

            //button16

            button16 = new Button();
            button16.Location = new Point(5, 232);
            button16.Text = "Sistemul Nervos";
            button16.Font = new Font("Verdana", 11.45f);
            button16.ForeColor = Color.Black;
            button16.Size = new Size(202, 34);
            button16.Visible = true;
            button16.Enabled = true;
            button16.BringToFront();
            button16.Click += this.button16_Click;
            button16.MouseEnter += this.button16_MouseEnter;
            button16.MouseLeave += this.organeDeSimt_MouseLeave;

            //pictureBox3

            pictureBox3 = new PictureBox();
            pictureBox3.Location = new Point(212, 32);
            pictureBox3.BackColor = Color.Transparent;
            pictureBox3.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox3.Size = new Size(211, 234);
            pictureBox3.Visible = true;
            pictureBox3.Enabled = true;
            pictureBox3.BringToFront();

            // Aparatul Reproducator:

            groupBox4 = new GroupBox();
            groupBox4.Location = new Point(328, 19 + 24);
            groupBox4.Text = "Aparatul Reproducator";
            groupBox4.Font = new Font("Verdana", 14.45f);
            groupBox4.ForeColor = Color.White;
            groupBox4.Size = new Size(161, 202);
            groupBox4.Visible = false;
            groupBox4.Enabled = false;
            groupBox4.BringToFront();
            groupBox4.BackColor = Color.Transparent;

            //button17

            button17 = new Button();
            button17.Location = new Point(5, 60);
            button17.Text = "Masculin";
            button17.Font = new Font("Verdana", 11.45f);
            button17.ForeColor = Color.Black;
            button17.Size = new Size(145, 34);
            button17.Visible = false;
            button17.Enabled = false;
            button17.BringToFront();
            button17.Click += this.button17_Click;

            //Button18

            button18 = new Button();
            button18.Location = new Point(5, 120);
            button18.Text = "Feminin";
            button18.Font = new Font("Verdana", 11.45f);
            button18.ForeColor = Color.Black;
            button18.Size = new Size(145, 34);
            button18.Visible = false;
            button18.Enabled = false;
            button18.BringToFront();
            button18.Click += this.button18_Click;

            //Sistemul Locomotor

            groupBox5 = new GroupBox();
            groupBox5.Location = new Point(461, 315 + 24);
            groupBox5.Text = "Aparatul Locomotor";
            groupBox5.Font = new Font("Verdana", 14.45f);
            groupBox5.ForeColor = Color.White;
            groupBox5.Size = new Size(313, 202);
            groupBox5.Visible = false;
            groupBox5.Enabled = false;
            groupBox5.BringToFront();
            groupBox5.BackColor = Color.Transparent;

            //button19

            button19 = new Button();
            button19.Location = new Point(5, 38);
            button19.Text = "Sistemul Osos";
            button19.Font = new Font("Verdana", 11.45f);
            button19.ForeColor = Color.Black;
            button19.Size = new Size(131, 55);
            button19.Visible = false;
            button19.Enabled = true;
            button19.BringToFront();
            button19.Click += this.button19_Click;
            button19.MouseEnter += this.button19_MouseEnter;
            button19.MouseLeave += this.button19_MouseLeave;

            //Button20

            button20 = new Button();
            button20.Location = new Point(5, 120);
            button20.Text = "Sistemul Muscular";
            button20.Font = new Font("Verdana", 11.45f);
            button20.ForeColor = Color.Black;
            button20.Size = new Size(131, 55);
            button20.Visible = false;
            button20.Enabled = true;
            button20.BringToFront();
            button20.Click += this.button20_Click;
            button20.MouseEnter += this.button20_MouseEnter;
            button20.MouseLeave += this.button19_MouseLeave;

            //PictureBox4

            pictureBox4 = new PictureBox();
            pictureBox4.Location = new Point(144, 32);
            pictureBox4.BackColor = Color.Transparent;
            pictureBox4.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox4.Size = new Size(157, 156);
            pictureBox4.Visible = false;
            pictureBox4.Enabled = false;
            pictureBox4.BringToFront();

            //teste

            groupBox6 = new GroupBox();
            groupBox6.Location = new Point(782, 363 + 24);
            groupBox6.Text = "Teste";
            groupBox6.Font = new Font("Verdana", 14.45f);
            groupBox6.ForeColor = Color.White;
            groupBox6.Size = new Size(151, 114);
            groupBox6.Visible = true;
            groupBox6.Enabled = true;
            groupBox6.BringToFront();
            groupBox6.BackColor = Color.Transparent;

            //Button21

            button21 = new Button();
            button21.Location = new Point(8, 40);
            button21.Text = "Teste";
            button21.Font = new Font("Verdana", 11.45f);
            button21.ForeColor = Color.Black;
            button21.Size = new Size(135, 39);
            button21.Visible = true;
            button21.Enabled = true;
            button21.BringToFront();
            button21.Click += this.button21_Click;
        }