/// <summary> /// конструктор /// </summary> protected BotPanel(string name) { NameStrategyUniq = name; ReloadTab(); _riskManager = new RiskManager.RiskManager(NameStrategyUniq); _riskManager.RiskManagerAlarmEvent += _riskManager_RiskManagerAlarmEvent; _log = new Log(name); _log.Listen(this); }
/// <summary> /// constructor / /// конструктор /// </summary> protected BotPanel(string name, StartProgram startProgram) { NameStrategyUniq = name; StartProgram = startProgram; ReloadTab(); _riskManager = new RiskManager.RiskManager(NameStrategyUniq, startProgram); _riskManager.RiskManagerAlarmEvent += _riskManager_RiskManagerAlarmEvent; _log = new Log(name, startProgram); _log.Listen(this); }