protected override void ActivateImpl()
 {
     _totalPointsCount = 0;
     Source.Clear();
     SurveyWizard.SurveyPointReceived -= OnSurveyWizardSurveyPointReceived;
     SurveyWizard.SurveyPointReceived += OnSurveyWizardSurveyPointReceived;
     SurveyWizard.StartReceivingPoints(false, false);
 }
 public SurveyWizardReviewPage(SurveyWizard surveyWizard)
     : base(surveyWizard)
 {
     ShowPrevButton   = true;
     ShowNextButton   = true;
     ShowCancelButton = true;
     NextButtonText   = "Test";
 }
 public SurveyWizardAcquirePage(SurveyWizard surveyWizard)
     : base(surveyWizard)
 {
     IsFirstPage         = true;
     ShowNextButton      = true;
     ShowCancelButton    = true;
     NextButtonText      = "Create";
     SecondStatusMessage = string.Empty;
 }
 public SurveyWizardAcquirePage(SurveyWizard surveyWizard)
     : base(surveyWizard)
 {
     IsFirstPage = true;
     ShowNextButton = true;
     ShowCancelButton = true;
     NextButtonText = "Create";
     SecondStatusMessage = string.Empty;
 }
        private void OnSurveyWizardSurveyPointReceived(object sender, EventArgs e)
        {
            ++_totalPointsCount;
            FirstStatusMessage = "Total Points Count: " + _totalPointsCount;
            var source = SurveyWizard.LastSurveyPoint;
            var output = SurveyWizard.Calibrate().Transformer.Transform(source);

            Source.Add(new SurveyPointPair(_totalPointsCount, source, output));
        }
 protected override void OnDispose()
 {
     SurveyWizard.StopReceivingPoints();
     if (Source != null)
     {
         Source.Clear();
         Source = null;
     }
     base.OnDispose();
 }
 public SurveyWizardTestPage(SurveyWizard surveyWizard)
     : base(surveyWizard)
 {
     IsLastPage = true;
     ShowPrevButton = true;
     ShowFinishButton = true;
     ShowCancelButton = true;
     FinishButtonText = "Apply";
     Source = new ObservableCollection<SurveyPointPair>();
     Columns = new TestColumnCollection();
 }
 public SurveyWizardTestPage(SurveyWizard surveyWizard)
     : base(surveyWizard)
 {
     IsLastPage       = true;
     ShowPrevButton   = true;
     ShowFinishButton = true;
     ShowCancelButton = true;
     FinishButtonText = "Apply";
     Source           = new ObservableCollection <SurveyPointPair>();
     Columns          = new TestColumnCollection();
 }
        protected override void ActivateImpl()
        {
            var surveyCalibration = SurveyWizard.Calibrate();

            if (surveyCalibration != null)
            {
                if (_stopwatch != null)
                {
                    _stopwatch.Stop();
                    _stopwatch = null;
                }
                _stopwatch = Stopwatch.StartNew();
                Dispatcher.Invoke(() => {
                    SurveyCalibration  = surveyCalibration;
                    FirstStatusMessage = ToString("Elapsed", surveyCalibration.ElapsedTime);
                });
                return;
            }
            SurveyWizard.PrevPageCommand.Execute(null);
        }
 protected override void OnDispose()
 {
     SurveyWizard.StopReceivingPoints();
     base.OnDispose();
 }
 protected override void DeactivateImpl()
 {
     SurveyWizard.StopReceivingPoints();
     SurveyWizard.SurveyPointReceived -= OnSurveyPointReceived;
 }
 protected override void ActivateImpl()
 {
     SurveyWizard.SurveyPointReceived -= OnSurveyPointReceived;
     SurveyWizard.SurveyPointReceived += OnSurveyPointReceived;
     SurveyWizard.StartReceivingPoints(true, true);
 }
 protected SurveyWizardPage(SurveyWizard surveyWizard)
 {
     Requires.NotNull(surveyWizard, "surveyWizard");
     SurveyWizard = surveyWizard;
     DisplayName = "Survey Calibration Wizard";
 }
Ejemplo n.º 14
0
 protected SurveyWizardPage(SurveyWizard surveyWizard)
 {
     Requires.NotNull(surveyWizard, "surveyWizard");
     SurveyWizard = surveyWizard;
     DisplayName  = "Survey Calibration Wizard";
 }