示例#1
0
        private void GetArrData(string name)
        {
            IteratorModel     iterator   = IteratorModel.GetInstance(null, null);
            List <PointModel> points     = iterator.GetListPoint(Tiker, Scale);
            List <string>     items      = new List <string>();
            List <ResultArr>  resultArrs = new List <ResultArr>();

            foreach (var item in  points[points.Count() - 2].AnalysisResults.Find(i => i.Name == name).ResultArr)
            {
                items.Add(item.Name);
            }
            GetTable(items);
            foreach (var tmp in points)
            {
                var tmpItem = tmp.AnalysisResults.Find(i => i.Name == name);
                if (tmpItem != null)
                {
                    resultArrs.Clear();
                    foreach (var item in tmpItem.ResultArr)
                    {
                        resultArrs.Add(item);
                    }
                    GetRows(tmp.Date, resultArrs);
                }
            }
        }
示例#2
0
        private void GetListComboBoxItems()
        {
            IteratorModel     iterator = IteratorModel.GetInstance(null, null);
            List <PointModel> points   = iterator.GetListPoint(Tiker, Scale);

            foreach (var tmp in points[points.Count() - 2].AnalysisResults)
            {
                ListComboBoxItems.Add(tmp.Name);
            }
        }