Ejemplo n.º 1
0
 /// <summary>
 /// Инициализирует параетры атаки
 /// </summary>
 /// <param name="Params">Параметры</param>
 public void InitParams(AttackParams Params)
 {
     if (state != ControllerState.Error)
     {
         UpdateData("Applying Parameters");
         if (state == ControllerState.Attacking)
         {
             Stop();
         }
         state = ControllerState.Tuning;
         if (Core != null)
         {
             Core.Params  = Params;
             Core.Adapter = Adapter;
             Core.ResetCounters();
         }
         else
         {
             Core = new AttackController(Params, Adapter, CoreErrorHandler);
         }
         if (mode)
         {
             state = ControllerState.Suspending;
         }
     }
 }
Ejemplo n.º 2
0
 public void InitParams(AttackParams Params) // change that crap to point!!
 {
     if (state != ControllerState.Error)
     {
         UpdateData("Применение параметров");
         if (state == ControllerState.Attacking)
         {
             Stop();
         }
         state = ControllerState.Tuning;
         if (Core != null)
         {
             Core.Params  = Params;
             Core.Adapter = Adapter;
             Core.ResetCounters();
         }
         else
         {
             Core = new AttackController(Params, Adapter, CoreErrorHandler);
         }
         if (mode)
         {
             state = ControllerState.Suspending;
         }
     }
 }