private void closeButton_Click(object sender, EventArgs e) { G02File = null; curstation = null; this.Close(); }
private void PopulateStations(HPARReaderV3.Model.G02 file) { stationSelector.Items.Clear(); stationLabel.Text = g02Name; foreach (HPARReaderV3.Model.Station curstation in file.Stations) { stationSelector.Items.Add(curstation.stationName.ToString()); } }
public mainWindow(string filepath, string filename) { InitializeComponent(); g02Name = filename; G02File = new Model.G02(filepath); PopulateStations(G02File); crossSectionPanel.Paint += new PaintEventHandler(crossSectionPanel_Paint); }