void Button3Click(object sender, EventArgs e) { double[] xx = new double[data.Count]; double[] yy = new double[data.Count]; double[] tt = new double[data.Count]; int j = 0; foreach (SData prime in data) // Loop through List with foreach { xx[j] = prime.x; yy[j] = prime.y; tt[j] = 0.020 * j; j++; } CDataIO io = new CDataIO(); io.WriteArrayToFile("x.dat", (uint)data.Count, xx); io.WriteArrayToFile("y.dat", (uint)data.Count, yy); io.WriteArrayToFile("t.dat", (uint)data.Count, tt); io.ShowDataImager("DataImager2.2.exe", "t x"); //io.ShowDataImager("DataImager2.2.exe","t y"); }
public MainForm() { DIO = new CDataIO(); // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // //Calc(); // //dataGrid1.Rows resetData(); //autoSave(); autoLoad(); }