Ejemplo n.º 1
0
            public ParetoData(SPC.Controls.Base.CanChooseDataGridView view, string param, int groupType, int cuType, System.Drawing.Color color, List <IDrawBoard <DevExpress.XtraCharts.ChartControl> > drawBoards)
            {
                SourceData       = new ParetoDataType(view, param, groupType, cuType);
                this.Name        = param + "_" + groupType.ToString() + "_" + DateTime.Now.ToBinary();
                this.SeriesColor = color;
                this.DrawBoards  = drawBoards;
                List <ParetoData> templist;

                foreach (var drawboard in drawBoards)
                {
                    if (drawboard.Tag == null || (templist = drawboard.Tag as List <ParetoData>) == null)
                    {
                        drawboard.Tag = new List <ParetoData>()
                        {
                            this
                        }
                    }
                    ;
                    else
                    {
                        templist.Add(this);
                    }
                }
                InitSeriesManagers();
            }
Ejemplo n.º 2
0
 public ParetoData(SPC.Controls.Base.CanChooseDataGridView view, string param, int groupType, int cuType, System.Drawing.Color color, List<IDrawBoard<DevExpress.XtraCharts.ChartControl>> drawBoards)
 {
     SourceData = new ParetoDataType(view, param, groupType,cuType);
     this.Name = param + "_" + groupType.ToString() + "_" + DateTime.Now.ToBinary();
     this.SeriesColor = color;
     this.DrawBoards = drawBoards;
     List<ParetoData> templist;
     foreach(var drawboard in drawBoards)
     {
         if (drawboard.Tag == null || (templist = drawboard.Tag as List<ParetoData>) == null)
             drawboard.Tag = new List<ParetoData>() { this };
         else
             templist.Add(this);
     }
     InitSeriesManagers();
 }