public void Start(IConveyor conveyor) { int index = Conveyors.IndexOf(conveyor); Conveyors.Remove(conveyor); conveyor.Start(Factory); Conveyors.Insert(index, conveyor); RaisePropertyChanged(nameof(Conveyors)); }
public void AddConveyor(IConveyor conveyor) { Conveyors.Add(conveyor); conveyor.Start(this); }