private void BtnAddPatient_Click(object sender, EventArgs e) { FrmPatientMng frm = new FrmPatientMng(); FrmPatientMng._new = true; FrmPatientMng.patient_id = ""; frm.ShowDialog(); }
private void GridPatients_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { string patient_id = this.gridPatients.Rows[e.RowIndex].Cells["patientid"].Value.ToString(); //string ticket_id = this.gridPatients.Rows[e.RowIndex].Cells["ticketid"].Value.ToString(); FrmPatientMng frm = new FrmPatientMng(); FrmPatientMng.patient_id = patient_id; //FrmPatientMng.ticket_id = ticket_id; FrmPatientMng._new = false; frm.ShowDialog(); }
private void TipTicketDetail_Click(object sender, EventArgs e) { DataGridViewRow row = this.gridPatients.CurrentRow; string patient_id = row.Cells["patientid"].Value.ToString(); //string ticket_id = row.Cells["ticketid"].Value.ToString(); FrmPatientMng frm = new FrmPatientMng(); FrmPatientMng.patient_id = patient_id; //FrmPatientMng.ticket_id = ticket_id; FrmPatientMng._new = false; frm.ShowDialog(); }