private void PictureBox3_Click(object sender, EventArgs e)
        {
            Manage_patient mp = new Manage_patient();

            this.Close();
            mp.Show();
        }
示例#2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Manage_patient mp = new Manage_patient(this);

            Hide();
            mp.Show();
        }
 private void Button3_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         Patient p = new Patient();
         p.id = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
         p.deletePatient();
         Manage_patient mp = new Manage_patient();
         this.Close();
         mp.Show();
     }
 }
        private void Login_Click(object sender, EventArgs e)
        {
            Patient p = new Patient();

            p.name      = textBox1.Text.ToString();
            p.address   = textBox3.Text.ToString();
            p.contactno = textBox2.Text.ToString();
            p.email     = textBox4.Text.ToString();
            if (login.Text == "SAVE")
            {
                p.addPatient();
            }
            else
            {
                p.id = v1;
                p.updatePatient();
            }
            Manage_patient mp = new Manage_patient();

            this.Close();
            mp.Show();
        }