private void AnalyseTestItems_Load(object sender, EventArgs e) { AVI_Analysis aVI_Analysis = new AVI_Analysis(AVI, dateTimePicker_ANA.Value); analysist = aVI_Analysis; analysist.Dock = DockStyle.Fill; panel.Controls.Add(analysist); }
private void dateTimePicker_ANA_ValueChanged(object sender, EventArgs e) { if (analysist != null) { analysist.Analysis_DateChange(dateTimePicker_ANA.Value); } else { AVI_Analysis aVI_Analysis = new AVI_Analysis(AVI, dateTimePicker_ANA.Value); analysist = aVI_Analysis; analysist.Dock = DockStyle.Fill; panel.Controls.Add(analysist); } }