예제 #1
0
        public void Add(StockVertex sv)
        {
            if (sv == null)
            {
                return;
            }

            if (vertexes_.ContainsKey(sv.VertexDate))
            {
                return;
            }

            vertexes_.Add(sv.VertexDate, sv);
        }
예제 #2
0
        public void Add(StockVertex sv)
        {
            if (sv == null)
            {
                return;
            }

            if (vertexes_.ContainsKey(sv.VertexDate))
            {
                return;
            }

            vertexes_.Add(sv.VertexDate, sv);
        }
예제 #3
0
        static StockVertex CreateVertex(SortStock sd, VertexType vtp)
        {
            if (sd == null)
            {
                return null;
            }

            StockVertex sv = new StockVertex();
            sv.FindType = VertexFindType.Automatic;
            sv.VertType = vtp;
            sv.VertexDate = sd.CurrentDate;

            return sv;
        }
예제 #4
0
        static StockVertex CreateVertex(SortStock sd, VertexType vtp)
        {
            if (sd == null)
            {
                return(null);
            }

            StockVertex sv = new StockVertex();

            sv.FindType   = VertexFindType.Automatic;
            sv.VertType   = vtp;
            sv.VertexDate = sd.CurrentDate;

            return(sv);
        }