private void GetEmployees(Object percentage) { Employees = EntityCommunicator.GetByTemplate <EmployeeEntity>(new EmployeeEntity() { Description = "admin" }); ProgressValue = 80; Employees.Add(EntityCommunicator.GetById <EmployeeEntity>(2)); ProgressValue = 90; Employees.Add(EntityCommunicator.GetById <EmployeeEntity>(3)); ProgressValue = 100; OnPropertyChange(() => Employees); }
private void GetProducts(Object percentage) { //List<ProductEntity> tmp = EntityCommunicator.GetAll<ProductEntity>(); //tmp.Add(EntityCommunicator.GetById<ProductEntity>(3)); //tmp.Add(EntityCommunicator.GetById<ProductEntity>(4)); //Products = tmp; //OnPropertyChange(() => Products); //ProgressValue = 5; //Products = EntityCommunicator.GetAll<ProductEntity>(); //ProgressValue = 30; //Products.Add(EntityCommunicator.GetById<ProductEntity>(3)); //ProgressValue = 40; //Products.Add(EntityCommunicator.GetById<ProductEntity>(4)); //ProgressValue = 50; //OnPropertyChange(() => Products); //test ProgressValue = 5; Products = EntityCommunicator.GetAll <ProductEntity>(); ProgressValue = 20; Products.Add(EntityCommunicator.GetById <ProductEntity>(3)); Products = null; ProgressValue = 30; Products = new List <ProductEntity>() { EntityCommunicator.GetById <ProductEntity>(4) }; ProgressValue = 40; Products = EntityCommunicator.GetByTemplate <ProductEntity>(new ProductEntity() { ProductType = "Product type 1" }); ProgressValue = 50; }
public void OpenCovariance(object execute) { List <EntityObject> entities = EntityCommunicator.GetAll <ProductEntity>().ToList <EntityObject>(); List <ProductEntity> products2 = entities.Cast <ProductEntity>().ToList(); }