private void PrepareBindings() { bindingSourceProductsIdNameModel = new BindingSource { DataSource = facade.GetProductsDto() }; bindingSourceUnitsIdNameModel = new BindingSource { DataSource = facade.GetUnitsDto() }; }
/// <summary> /// Повертає екземпляр представлення списку товарів постачальників /// </summary> /// <returns>Екземпляр представлення списку товарів постачальників</returns> public IProductsUC GetProductsUC() { productsUC.SetupControls(BuildDataSource(facade.GetProductsDto())); return(productsUC); }
private BindingSource PrepareBindings() => new BindingSource { DataSource = facade.GetProductsDto() };