private void bloodlettingeventreport_datagridview_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { Form A = new Bloodletting_Profile_Popup(int.Parse(bloodlettingeventreport_datagridview.CurrentRow.Cells[0].Value.ToString()), dh); A.ShowDialog(); refreshResults(); } catch { } }
private void add_button_donor_Click(object sender, EventArgs e) { if (Mode == 1) { Form A = new Bloodletting_Profile_Popup(dh); A.ShowDialog(); refresh(); } else { Form A = new BloodlettingEventPopUp(dh); A.ShowDialog(); refresh(); } }
private void OpenEvent() { if (Mode == 1) { //try { Form A = new Bloodletting_Profile_Popup(int.Parse(bloodletting_dgv.CurrentRow.Cells["blooddonorID"].Value.ToString()), dh); A.ShowDialog(); refresh(); } // catch { dh.conn.Close(); } } else { // try { Form A = new BloodlettingEventPopUp(int.Parse(bloodletting_dgv.CurrentRow.Cells["bloodDonationEventID"].Value.ToString()), dh); A.ShowDialog(); refresh(); } // catch { dh.conn.Close(); } } }