示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }