public List <CzxData> ReadCzxData(string czxPath) { try { List <CzxData> ListCzxData = new List <CzxData>(); StreamReader readczxfile = new StreamReader(czxPath, Encoding.Default); string text = ""; while ((text = readczxfile.ReadLine()) != null) { string[] eczxda = text.Split(','); CzxData czxdata = new CzxData(); czxdata.Name = eczxda[0]; // 点号 czxdata.X = double.Parse(eczxda[1]); // X(m) czxdata.Y = double.Parse(eczxda[2]); // Y(m) ListCzxData.Add(czxdata); } readczxfile.Close(); return(ListCzxData); } catch (Exception ex) { throw ex; } }
public bool IsSame(CzxData d) { if (d.Name.Equals(Name)) { return(true); } return(false); }
public Form1() { InitializeComponent(); infodata = new InfoData(); czxdata = new CzxData(); listinfodata = new List <InfoData>(); listczxdata = new List <CzxData>(); fileper = new FileHelper(); caldev = new CalDev(); listcaldevdata = new List <CalDevData>(); math_lb = new Mathematics_lb(); chatra_lb = new CharacteristicTrack_lb(); latdev_lb = new LateralDeviationSet_lb(); ContextReport = new StringBuilder(); tabcontrol = new TabControl(); OpenFilesBut = new ToolStripButton(); SaveResBut = new ToolStripButton(); CalBut = new ToolStripButton(); DrawingBut = new ToolStripButton(); HelpBut = new ToolStripButton(); }