internal async void OnLoaded(object sender, EventArgs e) { var factory = await FactoryService.GetFactoryById(1); var factoryRobots = factory.Robots; var descartesRobotFactory = DependencyInjector.Resolve <DescartesRobotFactory>(); foreach (var robot in factoryRobots) { var warehouseRobot = new WarehouseRobot(Guid.Parse(robot.Guid), descartesRobotFactory); warehouseRobot.Title = robot.Name; descartesRobotFactory.Robots.Add(warehouseRobot); } RobotFactories.Add(descartesRobotFactory); }
private void Add(RobotFactory robotFactory) { RobotFactories.Add(robotFactory); }