Exemplo n.º 1
0
        public ObtainingDriver(RepositiryClasses _rC)
        {
            _allTradChannel = (AllTradesChannel)_rC.GetReference("AllTradesChannel");
            _allTradChannel.LoadedLineEvent += _allTradChannel_LoadedLineEvent;

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

            id = 0;
        }
Exemplo n.º 2
0
        public DDEinfrastructure(RepositiryClasses _repoInf)
        {
            // server
            server = new XlDdeServer(service);

            server.AddChannel(curtabTopic, (CurrentTableChannel)_repoInf.GetReference("CurrentTableChannel"));
            server.AddChannel(allTradesTopic, (AllTradesChannel)_repoInf.GetReference("AllTradesChannel"));

            server.Register(); // Зарегистрируем сам DDE сервер
        }
Exemplo n.º 3
0
        //--------

        #region -Constructor-
        public ViewModel()
        {
            repositClasses     = new RepositiryClasses();
            manipulationCharts = new ManipulationCharts();

            marketTradRepo  = repositClasses.MarketTradRepo;
            testResultBufer = repositClasses.TestResReposit;

            settingsClass    = repositClasses.SettClass;
            testMarketDriver = repositClasses.TestmarketDriver;
            intraAdapt       = new IntradayAdaptation();

            // работа через файлы
            convertToDat = repositClasses.ConvToDat;
            calcBolinger = repositClasses.CalcBolinger;

            fromDate  = DateTime.Now;
            toDate    = fromDate;
            oneDay    = fromDate;
            countBest = 1;
        }