public void Initialize(Patient_cu patient, MainPatientInvoiceActions mainPatientInvoiceActions, Control parentControl) { ActivePatient = patient; MainPatientInvoiceActions = mainPatientInvoiceActions; ParentControl = parentControl; }
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); }
public void Initialize(Patient_cu patient, Control parentControl, MainPatientInvoiceActions mainPatientInvoiceActionsControl, PatientNotCompletedPreviousVisitsAction patientNotCompletedPreviousVisitsAction) { TopMaxParentControl = parentControl; MainPatientInvoiceActionsControl = mainPatientInvoiceActionsControl; List <GetPatientPreviousInvoices_Result> list = DBCommon.DBContext_External.GetPatientPreviousInvoices(patient.Person_CU_ID, false, true, null, null) .OrderBy(item => item.InvoiceCreationDate) .ToList(); grdPatientsList.DataSource = list; PatientNotCompletedPreviousVisitsAction = patientNotCompletedPreviousVisitsAction; }