예제 #1
0
파일: DayFile.cs 프로젝트: hiiter/StockTech
        internal static DayFile get(string symbol)
        {
            DayFile f = null;

            if (dict.TryGetValue(symbol, out f))
            {
                return(f);
            }
            f = new DayFile(symbol);
            dict.Add(symbol, f);
            return(f);
        }
        public void load(string symbol="sh000001")
        {
            if (this.symbol == symbol)
            {
                return;
            }

            this.symbol=symbol;
            this.priceFile = DayFile.get(symbol);
            this.totalItemCount = (int)this.priceFile.ItemCount;

            chartOffset = getMaxOffset();
            maxChartOffset = chartOffset;

            this.InvalidateVisual();
        }
        internal static DayFile get(string symbol)
        {
            DayFile f = null;
            if (dict.TryGetValue(symbol, out f))
            {
                return f;
            }
            f = new DayFile(symbol);
            dict.Add(symbol, f);
            return f;

        }