internal void init(IList <DdtIssuedAction> allAction) { if (allAction != null) { clearMedicine(); foreach (DdtIssuedAction issuedAction in allAction) { IssuedActionControl ctrl = new IssuedActionControl(getNextIndex(), this); ctrl.init(issuedAction); sizedContainer.Controls.Add(ctrl); } } }
internal List <DdtIssuedAction> getIssuedMedicines(IDbDataService service) { List <DdtIssuedAction> result = new List <DdtIssuedAction>(); for (int i = 0; i < sizedContainer.Controls.Count; i++) { IssuedActionControl control = (IssuedActionControl)sizedContainer.Controls[i]; DdtIssuedAction obj = control.getObject(service); if (obj != null) { result.Add(obj); } } return(result); }
internal void addMedicineBox(IDbDataService service) { IssuedActionControl ctrl = new IssuedActionControl(getNextIndex(), this); sizedContainer.Controls.Add(ctrl); }