private void dashboard_label_Click(object sender, EventArgs e) { PharmacistHome pharmacistHome = new PharmacistHome(); this.Hide(); pharmacistHome.Show(); }
private void checkout_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Cells["Id"].Value != null) { if (Convert.ToBoolean(row.Cells["Give"].Value)) { ManagePrescription mp = new ManagePrescription(); mp.giveMedicine(Int32.Parse(row.Cells["Id"].Value.ToString()), Int32.Parse(patient_id.Text)); } } } PharmacistHome pharmacistHome = new PharmacistHome(); this.Hide(); pharmacistHome.Show(); }