コード例 #1
0
ファイル: NewSurveyPageVm.cs プロジェクト: yuqiqian/Copacescc
 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>();
 }
コード例 #2
0
ファイル: SegmentSurvey.cs プロジェクト: yuqiqian/Copacescc
        // 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;
        }
コード例 #3
0
ファイル: MainPage.xaml.cs プロジェクト: yuqiqian/Copacescc
 private void editSegmentToTrashRoad(Segment seg)
 {
     seg.SequenceId = 1;
     seg.RoadId = "100869999999";
     seg.PlaceId = "10086";
 }