AnimationDeveloperSamples.frmCreateGraphicTrackOptions.RefreshPathSourceOptions C# (CSharp) Method

RefreshPathSourceOptions() public method

public RefreshPathSourceOptions ( ) : void
return void
        public void RefreshPathSourceOptions()
        {
            if (lineFeature != null)
                this.radioButtonLineFeature.Enabled = true;
            else
                this.radioButtonLineFeature.Enabled = false;

            if (lineGraphic != null)
            {
                this.radioButtonLineGraphic.Enabled = true;
            }
            else
            {
                this.radioButtonLineGraphic.Enabled = false;
            }

            if (this.radioButtonLineFeature.Enabled)
                this.radioButtonLineFeature.Checked = true;
            else
                this.radioButtonLineGraphic.Checked = true;
        }
    }

Usage Example

Example #1
0
        public override void OnClick()
        {
            frmCreateGraphicTrackOptions optionsForm = new frmCreateGraphicTrackOptions();
            IGeometry selectedPath    = GetSelectedLineFeature();
            IElement  lineElement     = (IElement)GetSelectedLineElement();
            IElement  selectedElement = GetSelectedPointElement();

            optionsForm.lineFeature        = selectedPath;
            optionsForm.lineGraphic        = (ILineElement)lineElement;
            optionsForm.pointGraphic       = selectedElement;
            optionsForm.AnimationExtension = animExt;
            optionsForm.RefreshPathSourceOptions();
            optionsForm.ShowDialog();
        }
All Usage Examples Of AnimationDeveloperSamples.frmCreateGraphicTrackOptions::RefreshPathSourceOptions