/// <summary> /// Datas the grid view x1 cell double click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="DataGridViewCellEventArgs"/> instance containing the event data.</param> private void DataGridViewX1CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var prescription = (Prescription)this.bdsPrescriptionHistory.Current; if (prescription == null) return; var historyDetail = new HistoryDetail(prescription.Id); historyDetail.ShowDialog(this); LoadData(); }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Prescription prescription = (Prescription)this.bdsPrescriptionHistory.Current; if (prescription == null) { return; } HistoryDetail historyDetail = new HistoryDetail(prescription.Id); historyDetail.ShowDialog(this); loadData(); }