public static OptionsSearchService GetOptionsSearchService() { var symbolData = new QuestradeSymbolDataConfig(); if (symbolData.FileExist) { symbolData.Load(); } if (OptionsSearchService != null) { return(OptionsSearchService); } OptionsSearchService = new OptionsSearchService(GazerVM.GetQuestradeAccountManager()); OptionsSearchService.SetIdsList(symbolData.Data.Where(sd => sd.m_hasOptions).Select(sd => sd.m_symbolId).ToList()); return(OptionsSearchService); }
public QuestradeOptionsConfig(OptionsSearchService optionsSearchService) { m_optionsSearchService = optionsSearchService; }