//初始化成员属性
 private void InitializationAttributes()
 {
     this.stepFromTextBox.Text = model.getStartStep();
     this.stepToTextBox.Text   = model.getEndStep();
     this.title     = "动态折线图";
     this.yText     = "数量";
     this.xText     = "数量";
     staCurrentList = new List <Statsitic>();
     startStep      = model.getStartStep();
     endStep        = model.getEndStep();
 }
예제 #2
0
        public override void createZedPane2()
        {
            this.stepFromTextBox.Text = model.getStartStep();
            this.stepToTextBox.Text   = model.getEndStep();
            String        reqStr = "";//请求点集的字符串;
            PointPairList destXY = setXYPoints(reqStr);

            setAtrributes();
            LineItem myCurve;

            this.myPane             = this.zedGraphControl.GraphPane;
            myPane.Title.Text       = title;
            myPane.YAxis.Title.Text = yText;
            myPane.XAxis.Title.Text = xText;
            setZedAction();
            myCurve = myPane.AddCurve("MyCurve", destXY, Color.DarkGreen, SymbolType.Diamond);
            // myCurve.Line.IsSmooth = true;
            this.zedGraphControl.AxisChange();
            this.zedGraphControl.Refresh();
        }