//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);
 }
Esempio n. 2
0
        //end the timer and update the timer in the database
        private void endTimer()
        {
            timer1.Stop();

            int previousTime = TTStruct.GetTimeSecs(id);

            int totalTime = previousTime + count;

            TTStruct.UpdateTime(totalTime, id);
        }