/// <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; } } }
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; } } }