public SingleSegmentNewSurveyVm(Segment segment, RoadSurvey roadSurvey) { Survey = new SegmentSurvey(roadSurvey, segment); if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.ContainsKey("DefaultRater")) Survey.Rater = Windows.Storage.ApplicationData.Current.LocalSettings.Values["DefaultRater"] as String; Segment = segment; EnableSaveButton = true; SurveyPhotoWrappers = new ObservableCollection<SurveyPhotoWrapper>(); }
// Default values public SegmentSurvey(RoadSurvey roadSurvey, Segment segment) { IsWindshieldSurvey = false; SegSurveyDate = DateTime.Now; RoadSurveyId = roadSurvey.Id; RoadSurveyDate = roadSurvey.Date; RoadId = roadSurvey.RoadId; InventId = segment.InventId; PlaceId = segment.PlaceId; SequenceId = segment.SequenceId; IsSynced = false; Id = ((DateTime) SegSurveyDate).ToFileTime() + "-" + InventId; CopacesRating = 100; }
private void editSegmentToTrashRoad(Segment seg) { seg.SequenceId = 1; seg.RoadId = "100869999999"; seg.PlaceId = "10086"; }