private void ClearGapMapDialogLoad(object sender, EventArgs e)
        {
            var boundList = new List<GapsByTicker>();

            // загрузить карту гэпов
            foreach (var ticker in DalSpot.Instance.GetTickerNames())
            {
                var record = GapMap.Instance.GetServerGaps(ticker);
                if (record == null) continue;
                var row = new GapsByTicker(ticker, record);
                if (initiallySelectedTickers != null)
                    row.Selected = initiallySelectedTickers.Contains(row.Ticker);
                boundList.Add(row);
            }

            grid.DataBind(boundList);
        }
Beispiel #2
0
        private void ClearGapMapDialogLoad(object sender, EventArgs e)
        {
            var boundList = new List <GapsByTicker>();

            // загрузить карту гэпов
            foreach (var ticker in DalSpot.Instance.GetTickerNames())
            {
                var record = GapMap.Instance.GetServerGaps(ticker);
                if (record == null)
                {
                    continue;
                }
                var row = new GapsByTicker(ticker, record);
                if (initiallySelectedTickers != null)
                {
                    row.Selected = initiallySelectedTickers.Contains(row.Ticker);
                }
                boundList.Add(row);
            }

            grid.DataBind(boundList);
        }