Exemple #1
0
        private BindingSource BuildDataSource()
        {
            var bindingList = new BindingList <UnitsDtoModel>();

            foreach (UnitsDtoModel unit in facade.GetUnitsDto())
            {
                bindingList.Add(unit);
            }
            bindingSource = new BindingSource {
                DataSource = bindingList
            };
            return(bindingSource);
        }
Exemple #2
0
 private void PrepareBindings()
 {
     bindingSourceProductsIdNameModel = new BindingSource {
         DataSource = facade.GetProductsDto()
     };
     bindingSourceUnitsIdNameModel = new BindingSource {
         DataSource = facade.GetUnitsDto()
     };
 }
 private void PrepareBindings()
 {
     bindingSourceSuppliersIdNameModel = new BindingSource {
         DataSource = facade.GetSuppliersDto()
     };
     bindingSourceCategoriesIdNameModel = new BindingSource {
         DataSource = facade.GetCategoriesDto()
     };
     bindingSourceGroupsIdNameModel = new BindingSource {
         DataSource = facade.GetGroupsDto()
     };
     bindingSourceUnitsIdNameModel = new BindingSource {
         DataSource = facade.GetUnitsDto()
     };
 }