public SPCDetermineData(SPC.Controls.Base.CanChooseDataGridView view, string param, double ucl, double lcl, double standard, List <SPCCommandbase> commands, System.Drawing.Color color, List <IDrawBoard <DevExpress.XtraCharts.ChartControl> > drawBoards) { SourceData = new SPCDetermineDataType(view, param, ucl, lcl, standard, commands); this.Name = param + "_" + DateTime.Now.ToBinary(); this.SeriesColor = color; this.DrawBoards = drawBoards; List <SPCDetermineData> templist; foreach (var drawboard in drawBoards) { if (drawboard.Tag == null || (templist = drawboard.Tag as List <SPCDetermineData>) == null) { drawboard.Tag = new List <SPCDetermineData>() { this } } ; else { templist.Add(this); } } InitSeriesManagers(); }
public SPCDetermineData(SPC.Controls.Base.CanChooseDataGridView view, string param, double ucl, double lcl, double standard, List<SPCCommandbase> commands, System.Drawing.Color color, List<IDrawBoard<DevExpress.XtraCharts.ChartControl>> drawBoards) { SourceData = new SPCDetermineDataType(view, param, ucl,lcl,standard,commands); this.Name =param + "_" + DateTime.Now.ToBinary(); this.SeriesColor = color; this.DrawBoards = drawBoards; List<SPCDetermineData> templist; foreach (var drawboard in drawBoards) { if (drawboard.Tag == null || (templist = drawboard.Tag as List<SPCDetermineData>) == null) drawboard.Tag = new List<SPCDetermineData>() { this }; else templist.Add(this); } InitSeriesManagers(); }