Exemplo n.º 1
0
 public void saveDraft()
 {
     _reportDraftSaving.Description = tbDoneOnTrip.Text;
     _reportDraftSaving.NumberOfKilometersDrivenInTotal = Int32.Parse(TbTotalKm.Text);
     _reportDraftSaving.KilometersDriven = Int32.Parse(TbCarTripLengthKm.Text);
     _reportDraftSaving.imagePathsList = listBoxReceipts.Items.Cast<String>().ToList();
     _reportDraftSaving.StartDate = dpStartDate.Text;
     _reportDraftSaving.EndDate = dpEndDate.Text;
     _reportDraftSaving.daysSpentInCountry = listBoxDays.Items.Cast<String>().ToList();
     reportHandler.SaveDraft(_reportDraftSaving, "DraftReport.xml");
     tbDoneOnTrip.Text = "";
 }