private void PictureBox3_Click(object sender, EventArgs e)
        {
            Manage_appointment ma = new Manage_appointment();

            Close();
            ma.Show();
        }
Пример #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Manage_appointment ma = new Manage_appointment(this);

            Hide();
            ma.Show();
        }
 private void Button3_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         Appointment a = new Appointment();
         a.A_id = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
         a.deleteAppointment();
         Manage_appointment mp = new Manage_appointment();
         this.Close();
         mp.Show();
     }
 }