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(); }
//-------- #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; }