public void Start(IConveyor conveyor)
        {
            int index = Conveyors.IndexOf(conveyor);

            Conveyors.Remove(conveyor);
            conveyor.Start(Factory);
            Conveyors.Insert(index, conveyor);
            RaisePropertyChanged(nameof(Conveyors));
        }
Example #2
0
 public void AddConveyor(IConveyor conveyor)
 {
     Conveyors.Add(conveyor);
     conveyor.Start(this);
 }