Пример #1
0
        // обработка добавления строки в AllTradesChannel
        void _allTradChannel_LoadedLineEvent(object sender, EventArgs e)
        {
            id++;

            AllTradesChannel     _send = (AllTradesChannel)sender;
            ParametrMarketTrades _pmt  = new ParametrMarketTrades(id.ToString(), _send.Date, _send.Time, _send.Number, _send.Price, _send.Security, _send.TimeMsk, _send.Operation, _send.Quantity);

            marketTradRepo.Add(_pmt); // ! добавляем без проверки по номеру !
        }
Пример #2
0
        public ObtainingDriver(RepositiryClasses _rC)
        {
            _allTradChannel = (AllTradesChannel)_rC.GetReference("AllTradesChannel");
            _allTradChannel.LoadedLineEvent += _allTradChannel_LoadedLineEvent;

            marketTradRepo = _rC.MarketTradRepo;
            settClass      = _rC.SettClass;

            id = 0;
        }
Пример #3
0
        // создание экземпляров dde экспортов и запуск конструктора DDEinfrastructure()
        private void DDEChannelCreate()
        {
            _objectRepository = new Dictionary <string, object>();

            allTradesChannel    = new AllTradesChannel();
            currentTableChannel = new CurrentTableChannel();

            AddReference(_objectRepository, allTradesChannel.GetType().Name, allTradesChannel);
            AddReference(_objectRepository, currentTableChannel.GetType().Name, currentTableChannel);

            ddeInfra = new DDEinfrastructure(this);
        }