private void Calculate(object sender, NotifyCollectionChangedEventArgs e) { WaitingTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Czekanie).Sum(z => z.AvarageCycle); AVTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Kontrola).Sum(z => z.AvarageCycle); ControlTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Kontrola).Sum(z => z.AvarageCycle); TransportTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Kontrola).Sum(z => z.AvarageCycle); }
public void Aktualizuj() { CycleAnalyses = shellVM.CurrentOperation.CycleAnalyses; NotifyOfPropertyChange(() => CycleAnalyses); SumWaitingTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Czekanie).Sum(z => z.AvarageCycle); }