private void LoadStatus() { List <Status> lisStatus = new StatusBll(mAccount).getElements(); lookUpEditStatus.Properties.DisplayMember = "StatusName"; lookUpEditStatus.Properties.ValueMember = "Id"; lookUpEditStatus.Properties.DataSource = lisStatus; }
public StatusEnums() { OperationTypeBll = new StatusBll(); Kullanimda = new Guid(); Depoda = new Guid(); Kullanimda = OperationTypeBll.GetByFilter(x => x.Name == "Kullanımda").Id; Depoda = OperationTypeBll.GetByFilter(x => x.Name == "Depoda").Id; }
static DependencyResolver() { Logger = new Log4net(); RoleDao = new RoleDao(Logger); UserDao = new UserDao(Logger, RoleDao); CategoryDao = new CategoryDao(Logger); ProductDao = new ProductDao(Logger, CategoryDao); StoreDao = new StoreDao(Logger); VendorDao = new VendorDao(Logger); StatusDao = new StatusDao(Logger); CommodityUnitDao = new CommodityUnitDao(Logger, ProductDao, StatusDao, StoreDao, VendorDao); RoleBll = new RoleBll(Logger, RoleDao); UserBll = new UserBll(Logger, RoleBll, UserDao); CategoryBll = new CategoryBll(Logger, CategoryDao, CommodityUnitDao); ProductBll = new ProductBll(Logger, CategoryBll, ProductDao, CommodityUnitDao); StoreBll = new StoreBll(Logger, StoreDao, CommodityUnitDao); VendorBll = new VendorBll(Logger, VendorDao, CommodityUnitDao); StatusBll = new StatusBll(Logger, StatusDao, CommodityUnitDao); CommodityUnitBll = new CommodityUnitBll(Logger, CategoryBll, ProductBll, StatusBll, StoreBll, VendorBll, CommodityUnitDao); AuthenticationBll = new AuthenticationBll(UserBll); }