Exemple #1
0
        private ObservableCollection <Warehouse> BuildWarehouseDropDown()
        {
            List <Warehouse> list = new List <Warehouse>();

            list = _serviceAgent.GetWarehousesReadOnly(ClientSessionSingleton.Instance.CompanyID).ToList();
            list.Add(new Warehouse());
            list.Sort((x, y) => string.Compare(x.Name, y.Name));

            return(new ObservableCollection <Warehouse>(list));
        }