//grabs the info from the database and stores it in local variables
 private void getInfo()
 {
     weight    = TTStruct.getWeight(this.id);
     mile      = TTStruct.getMileage(this.id);
     driveTime = TTStruct.GetTime(this.id);
     date      = TTStruct.getDate(this.id);
     time      = TTStruct.GetTimeSecs(this.id);
 }
Beispiel #2
0
 //displays the current mileage from the db
 private void displayCurrent()
 {
     this.label2.Text = "Total Miles:" + TTStruct.getMileage(id);
 }