public void Add(StockVertex sv) { if (sv == null) { return; } if (vertexes_.ContainsKey(sv.VertexDate)) { return; } vertexes_.Add(sv.VertexDate, sv); }
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; }
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); }