Example #1
0
            public XYRelationData(SPC.Controls.Base.CanChooseDataGridView view, string paramY, string paramX, System.Drawing.Color color, List <IDrawBoard <DevExpress.XtraCharts.ChartControl> > drawBoards)
            {
                SourceData       = new XYRelationSourceDataType(view, paramX, paramY);
                this.Name        = "X:" + paramX + "_Y:" + paramY + "_" + DateTime.Now.ToBinary();
                this.SeriesColor = color;
                this.DrawBoards  = drawBoards;
                List <XYRelationData> templist;

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

                foreach (var drawboard in drawBoards)
                {
                    if (drawboard.Tag == null || (templist = drawboard.Tag as List <MonitorSeriesData>) == null)
                    {
                        drawboard.Tag = new List <MonitorSeriesData>()
                        {
                            this
                        }
                    }
                    ;
                    else
                    {
                        templist.Add(this);
                    }
                }
                InitSeriesManagers();
            }
Example #3
0
            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();
            }