Пример #1
0
        private ObservableCollection <WarehouseLocationType> BuildWarehouseLocationTypeDropDown()
        {
            List <WarehouseLocationType> list = new List <WarehouseLocationType>();

            list = _serviceAgent.GetWarehouseLocationTypesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList();
            list.Add(new WarehouseLocationType());
            list.Sort((x, y) => string.Compare(x.Type, y.Type));

            return(new ObservableCollection <WarehouseLocationType>(list));
        }
Пример #2
0
 private ObservableCollection <WarehouseLocationType> GetWarehouseLocationTypes()
 {
     return(new ObservableCollection <WarehouseLocationType>(_serviceAgent.GetWarehouseLocationTypesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList()));
 }