private void ll_logout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { f_PharmacyHomeScreen cur = this; Form1 form = new Form1(); form.Show(); this.Close(); }
private void ll_home_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { f_PharmacyForm cur = this; f_PharmacyHomeScreen home = new f_PharmacyHomeScreen(); home.Show(); this.Close(); }
private void b_save_Click(object sender, EventArgs e) { f_PharmacyForm form = this; bPharmacy pha = new bPharmacy(); pha.save(t_MRN, tdate, grid); f_PharmacyHomeScreen home = new f_PharmacyHomeScreen(); home.Show(); form.Close(); //lab.saveTestResults(t_MRN, treportDate, reportGrid); }
private void b_DispenseMedicine_Click(object sender, EventArgs e) { //if (grid.RowCount == 1) // MessageBox.Show("No Lab tests scheduled for the day!!!\nEnter an MRN to perform a lab test"); //else // { f_PharmacyHomeScreen home = this; DataGridViewRow row = infodetailtable.CurrentRow; string MRN = row.Cells[0].Value.ToString(); string date = row.Cells[1].Value.ToString(); int mrn = Convert.ToInt16(MRN); f_PharmacyForm med = new f_PharmacyForm(mrn, date); med.Show(); home.Dispose(); //} }