コード例 #1
0
        public RepositiryClasses()
        {
            DDEChannelCreate();

            // --1--
            marketTradesRepository = new MarketTradesRepository();
            testResultRepository   = new TestResultRepositiry();
            settingsClass          = new SettingsClass();

            // --2--
            // восстанавливаем сохраненные экземпляры
            DeserializesObject();

            // последний
            obtainingDriver  = new ObtainingDriver(this);
            convertToDat     = new ConvertToDat();
            calcBolinger     = new CalculationBolinger();
            testMarketDriver = new TestMarketDriver();
        }
コード例 #2
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;
        }