public frmMedicinePlanList() { repClinic = new ClinicRepository(); repMedicinePlan = new MedicinePlanRepository(); repMedicinePlanDetail = new MedicinePlanDetailRepository(); InitializeComponent(); try { InitGrid(); BindData(); } catch (Exception ex) { throw; } }
public frmMedicinePlanDetail(int planId) { InitializeComponent(); repClinic = new ClinicRepository(); repMedicinePlan = new MedicinePlanRepository(); repMedicinePlanDetail = new MedicinePlanDetailRepository(); IsOwner = false; this.PlanId = planId; try { BindData(); } catch (Exception ex) { throw; } }