public void clearSets() { if (newTchart != null) { for (int i = newTchart.Series.Count - 1; i >= 0; i--) { newTchart.Series.RemoveAt(i); } } if (textBox != null) { textBox = null; } if (textPanle != null) { textPanle = null; } if (newTchart != null) { newTchart = null; } if (stripSeries != null) { stripSeries = null; } if (showPanle != null) { showPanle = null; } if (subPanle != null) { subPanle = null; } }
public calibTofdColumn(System.Windows.Forms.Panel panel, float widthPos, float subpanelwidth, string assignName, calibStripType type) { this.type = type; this.assignName = assignName; initControls(panel, widthPos, subpanelwidth); tofdSeries = new StripSeries(this.newTchart); }
public calibStripColumn(System.Windows.Forms.Panel panel, float widthPos, float subpanelwidth, string assignName, calibStripType type) { this.type = type; this.assignName = assignName; this.xPos = widthPos; initControls(panel, widthPos, subpanelwidth); switch (this.type) { case calibStripType.PAstrip: stripSeries = new StripSeries(this.newTchart); break; case calibStripType.Scale: stripSeries = null; break; } }