public void FillData() { ObservableCollection <LoadVM> loads = new ObservableCollection <LoadVM>(); for (int i = 0; i < 10; i++) { loads.Add(new LoadVM("a" + i, i, i)); } for (int i = 0; i < 10; i++) { WaitingTrucks.Add(new TruckVM("Stadt", i, loads)); } }
private void ClearButtonClicked() { WaitingTrucks.Clear(); ReadyTrucks.Clear(); }
private void SendButtonClicked() { ReadyTrucks.Add(SelectedWaitingTruck); WaitingTrucks.Remove(SelectedWaitingTruck); }