Exemplo n.º 1
0
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="name">name of owner of alerts repository/имя владельца хранилища алертов</param>
        /// <param name="connector">connector/коннектор</param>
        /// <param name="chartMaster">chart/чарт</param>
        public AlertMaster(string name, ConnectorCandles connector, ChartCandleMaster chartMaster)
        {
            _name        = name;
            _connector   = connector;
            _chartMaster = chartMaster;
            chartMaster.GetChart().Click += AlertMaster_Click;

            Load();

            CreateGrid();
            PaintGridBox();

            OsLocalization.LocalizationTypeChangeEvent += delegate
            {
                CreateGrid();
                PaintGridBox();
            };
        }
Exemplo n.º 2
0
 /// <summary>
 /// get chart
 /// взять чарт
 /// </summary>
 public Chart GetChart()
 {
     return(_chartMaster.GetChart());
 }