private void InterpretAllPlots() { plots.Clear(); foreach (Series s in chart1.Series) { plots.Add(new PointControl(s)); } viewSelected = new ViewControlUnit(chart1.ChartAreas[0]); }
private void Form1_Load(object sender, EventArgs e) { KeyPreview = true; LoadInfo(); InitializeConnection(); plotTemp = new PointControl(chart1.Series[0]); plotPress = new PointControl(chart1.Series[1]); plotSpeed = new PointControl(chart1.Series[2]); plotHeight = new PointControl(chart1.Series[3]); plotVolt = new PointControl(chart1.Series[4]); plotCharge = new PointControl(chart1.Series[5]); plotHum = new PointControl(chart1.Series[6]); plotCO = new PointControl(chart1.Series[7]); plotNH = new PointControl(chart1.Series[8]); plotNO = new PointControl(chart1.Series[9]); plotSelected = new PointControl(chart2.Series[0]); viewSelected = new ViewControlUnit(chart2.ChartAreas[0]); getFlyID(); lastTime = 0; pocketCount = 0; UpdateInfo(); }
public GraphicViewer() { InitializeComponent(); plots = new List <PointControl>(); viewSelected = new ViewControlUnit(chart1); }