Example #1
0
        private static void PointPerUniteOfLengthPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            SetTrail createTrail = (SetTrail)obj;

            if ((int)args.NewValue != (int)args.OldValue)
            {
                createTrail.PointPerUniteOfLength = (int)args.NewValue;
                createTrail.raiseTrailParametersUpdatedEvent();
            }
        }
Example #2
0
        private static void TrailFreedomPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            SetTrail createTrail = (SetTrail)obj;

            if ((double)args.NewValue != (double)args.OldValue)
            {
                createTrail.TrailCurvature = (double)args.NewValue;
                createTrail.raiseTrailParametersUpdatedEvent();
            }
        }
        void visualization_Menu_Click(object sender, RoutedEventArgs e)
        {
            this._trailCreator                         = new SetTrail(this._host);
            this._trailCreator.Owner                   = this._host;
            this._trailCreator._drawBtm.Click         += _drawBtm_Click;
            this._trailCreator.TrailParametersUpdated += _trailCreator_Updated;
            this._trailCreator._importBtm.Click       += _importBtm_Click;
            this._trailCreator._exportBtm.Click       += _exportBtm_Click;
            this._trailCreator.Closing                += _trailCreator_Closing;

            this._trailCreator.ShowDialog();
        }