private void BackStep() { switch (_currentStatue) { case EnumBackNextOC.None: break; case EnumBackNextOC.SelAxis: this._currentStatue = EnumBackNextOC.FillData; break; case EnumBackNextOC.FillData: this.CurveDataDgv.EndEdit(); this.CurveDataDgv.Visible = false; this.axisDgv.Visible = true; this.zedGraphOutputCurve.Visible = false; this.toolStripBack.Enabled = false; this.toolStripNext.Enabled = true; _currentStatue = EnumBackNextOC.SelAxis; break; case EnumBackNextOC.DrawCurev: this.CurveDataDgv.Visible = true; this.axisDgv.Visible = false; this.toolStripBack.Enabled = true; this.toolStripNext.Enabled = true; this.zedGraphOutputCurve.Visible = false; _currentStatue = EnumBackNextOC.FillData; break; } }
private void NextStep() { switch (_currentStatue) { case EnumBackNextOC.None: //outputCurvesBll.initAxisDgv(); this.axisDgv.Visible = true; this.CurveDataDgv.Visible = false; this.zedGraphOutputCurve.Visible = false; this.toolStripBack.Enabled = false; this.toolStripNext.Enabled = true; _currentStatue = EnumBackNextOC.SelAxis; break; case EnumBackNextOC.SelAxis: this.axisDgv.EndEdit(); //outputCurvesBll.initCurveDataDgv(); outputCurvesBll.reFreshAxisList(); this.axisDgv.Visible = false; this.CurveDataDgv.Visible = true; this.zedGraphOutputCurve.Visible = false; this.toolStripBack.Enabled = true; this.toolStripNext.Enabled = true; _currentStatue = EnumBackNextOC.FillData; break; case EnumBackNextOC.FillData: this.CurveDataDgv.EndEdit(); this.CurveDataDgv.Visible = false; this.axisDgv.Visible = false; this.zedGraphOutputCurve.Visible = true; this.toolStripBack.Enabled = true; this.toolStripNext.Enabled = false; outputCurvesBll.initZedGraph(); outputCurvesBll.drawCurves(); _currentStatue = EnumBackNextOC.DrawCurev; break; case EnumBackNextOC.DrawCurev: //this.CurveDataDgv.Visible = false; //this.axisDgv.Visible = false; //this.zedGraphOutputCurve.Visible = true; //this.ToolStripMenuItemBack.Enabled = true; //this.ToolStripMenuItemNext.Enabled = false; //_currentStatue = EnumBackNextOC.SelAxis; break; } }