private void button_read_Click(object sender, EventArgs e) { var path = this.fileOpenControl1.FilePath; IonoReader reader = new IonoReader(path); this.File = reader.ReadAll(); this.IonoFileService = new Data.GridIonoFileService(File); bindingSource_times.DataSource = File.Keys; bindingSource_sections.DataSource = File.Values; mgr.Clear(); table = mgr.AddTable(File.Name); StringBuilder sb = new StringBuilder(); sb.AppendLine("--------- Satellite ---------"); foreach (var item in File.DcbsOfSats) { sb.AppendLine(item.Key + "\t" + item.Value); } sb.AppendLine("--------- Site ---------"); foreach (var item in File.DcbsOfSites) { sb.AppendLine(item.Key + "\t" + item.Value); } richTextBoxControl1Dcb.Text = sb.ToString(); }
private void button_read_Click(object sender, EventArgs e) { var path = this.fileOpenControl1.FilePath; IonoReader reader = new IonoReader(path); this.File = reader.ReadAll(); this.IonoFileService = new Data.GridIonoFileService(File); this.namedTimeControl1.SetValue(File.TimePeriod.Start.DateTime); namedTimeControl2.SetValue(File.TimePeriod.Start.DateTime); bindingSource_times.DataSource = File.Keys; bindingSource_sections.DataSource = File.Values; log.Info("加载完毕!" + path); }