private void gridView1_DoubleClick(object sender, EventArgs e) { ActivePatient = CommonViewsActions.GetSelectedRowObject <Patient_cu>(gridView1); if (ActivePatient == null) { return; } MainPatientInvoiceActions patienActions = new MainPatientInvoiceActions(); patienActions.Initialize(ActivePatient, ParentControl); PopupBaseForm.ShowAsPopup(patienActions, this); }
private void gridControl1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { var rowObject = CommonViewsActions.GetSelectedRowObject(gridView1); if (rowObject is GetInvoiceForAddmission_Result) { InvoiceObject invoiceObject = MerkDBBusinessLogicEngine.GetInvoiceFullTree(((GetInvoiceForAddmission_Result)rowObject).InvoiceID); if (invoiceObject == null) { return; } MainPatientInvoiceActions patienActions = new MainPatientInvoiceActions(); patienActions.Initialize(invoiceObject); PopupBaseForm.ShowAsPopup(patienActions, this); } }