private GPSData[] ResizeGPS(GPSData[] GPSIn) { GPSData[] tmp = new GPSData[GPSIn.Length + 1000]; for (int i = 0; i < GPSIn.Length; i++) { tmp[i] = GPSIn[i]; } return(tmp); }
private void button4_Click(object sender, EventArgs e) { int len = m_GPS.Length; for (int i = 0; i < len; i++) { m_GPS[i] = new GPSData(i + 1.1, i + 2.2, i + 3.3); SetCell(0, i, m_GPS[i].Longitude); SetCell(1, i, m_GPS[i].Latitude); SetCell(2, i, m_GPS[i].Velocity); } }