Exemplo n.º 1
0
 private void AddOptimizer(IOptimizer optimizer)
 {
     RegisterOptimizerEvents(optimizer);
     Runs.AddRange(optimizer.Runs);
     optimizer.Prepare();
     if (ExecutionState == ExecutionState.Stopped && optimizer.ExecutionState == ExecutionState.Prepared)
     {
         OnPrepared();
     }
 }
 public void Start()
 {
     if (!loaded)
     {
         printToConsole("Nothing has been loaded. Call Load() before Start().");
         return;
     }
     optimizer.Prepare();
     lastTimespan = TimeSpan.Zero;
     optimizer.Start();
 }
Exemplo n.º 3
0
 private void AddOptimizer(IOptimizer optimizer) {
   RegisterOptimizerEvents(optimizer);
   Runs.AddRange(optimizer.Runs);
   optimizer.Prepare();
   if (ExecutionState == ExecutionState.Stopped && optimizer.ExecutionState == ExecutionState.Prepared)
     OnPrepared();
 }