//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); }
//update the service date private void updateServ() { bool test = TTStruct.setDate(calendar.SelectionStart.Year, calendar.SelectionStart.Month, calendar.SelectionStart.Day, this.id); if (test) { //show if update was a success label3.Show(); } else { //show if update was a failure label4.Show(); } //display the new date displayNew("" + TTStruct.getDate(this.id)); }
//display current date private void displayCur() { this.label2.Text = "Last Service Date:" + TTStruct.getDate(this.id); }