private void optimizer_Runs_CollectionReset(object sender, CollectionItemsChangedEventArgs <IRun> e)
 {
     lock (runsLocker) {
         Runs.RemoveRange(e.OldItems);
         Runs.AddRange(e.Items);
     }
 }
 private void AddOptimizer(IOptimizer optimizer)
 {
     RegisterOptimizerEvents(optimizer);
     Runs.AddRange(optimizer.Runs);
     optimizer.Prepare();
     if (ExecutionState == ExecutionState.Stopped && optimizer.ExecutionState == ExecutionState.Prepared)
     {
         OnPrepared();
     }
 }
 private void optimizer_Runs_ItemsAdded(object sender, CollectionItemsChangedEventArgs <IRun> e)
 {
     lock (runsLocker)
         Runs.AddRange(e.Items);
 }
Exemple #4
0
 private void Optimizer_Runs_ItemsAdded(object sender, CollectionItemsChangedEventArgs <IRun> e)
 {
     Runs.AddRange(e.Items);
 }