public void LoadCashTypeBase(int CashBaseTypeId) { List <CashType> array = _DataService.findCashType(CashBaseTypeId); CashTypes.Clear(); for (int i = 0; i < array.Count; i++) { CashTypes.Add((new CashTypeBean()).CreateCashTypeBean(array[i])); } }
public void LoadCashTypeBase(int CashBaseTypeId, int index) { List <CashType> array = _DataService.findCashType(0); if (index == 0) { CashTypes = new ObservableCollection <CashTypeBean>(); } CashTypes.Clear(); for (int i = 0; i < array.Count; i++) { CashTypes.Add((new CashTypeBean()).CreateCashTypeBean(array[i])); } }