partial void DeletePatient_Info(Patient_Info instance);
 partial void InsertPatient_Info(Patient_Info instance);
 partial void UpdatePatient_Info(Patient_Info instance);
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != string.Empty && textBox2.Text != string.Empty && textBox3.Text != string.Empty && textBox3.Text != string.Empty)
            {
                try
                {
                    Patient_Info p = new Patient_Info();
                    p.Name        = textBox1.Text;
                    p.Age         = int.Parse(textBox2.Text);
                    p.Blood_Group = textBox3.Text;
                    p.Contact     = textBox5.Text;
                    h.Patient_Infos.InsertOnSubmit(p);
                    h.SubmitChanges();

                    var x = from a in h.Patient_Infos
                            where a.Contact == textBox5.Text
                            select a;

                    // label19
                    //
                    this.label19.Text = "Patient\'s Id :";
                    //
                    // label20
                    //
                    this.label20.Text = "Patient\'s Name :";
                    //
                    // label21
                    //
                    this.label21.Text = "Age :";
                    //
                    // label23
                    //
                    this.label23.Text = "Blood Group :";
                    //
                    // label24
                    //
                    this.label24.Text = (x.First().Id).ToString();
                    //
                    // label25
                    //
                    this.label25.Text = textBox1.Text;
                    //
                    // label26
                    //
                    this.label26.Text = textBox3.Text;
                    //
                    // label27
                    //
                    this.label27.Text = textBox2.Text;

                    panel3.Dispose();
                    panel4.Dispose();

                    panel5.Show();

                    flowLayoutPanel2.Show();
                    label28.Show();
                    textBox6.Show();
                    button3.Show();

                    flowLayoutPanel3.Show();
                    label29.Show();
                    textBox7.Show();
                    button4.Show();

                    flowLayoutPanel4.Show();
                    label30.Show();
                    textBox8.Show();
                    button5.Show();

                    panel6.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error !! Probably Wrong Format Data Inserted !!");
                }
            }
            else
            {
                MessageBox.Show("Please Fill Up Required Information !");
            }
        }