Exemple #1
0
 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);
 }
Exemple #2
0
 public void Aktualizuj()
 {
     CycleAnalyses = shellVM.CurrentOperation.CycleAnalyses;
     NotifyOfPropertyChange(() => CycleAnalyses);
     SumWaitingTime = CycleAnalyses.Where(x => x.OperationType == TypeOfOperation.Czekanie).Sum(z => z.AvarageCycle);
 }