protected override void SaveSettings()
        {
            myAIComponent.mySpeed.myX = mySpeed.GetMinValue();
            myAIComponent.mySpeed.myY = mySpeed.GetMaxValue();

            myAIComponent.myTimeToNextDecision.myX = myTimeToNextDecision.GetMinValue();
            myAIComponent.myTimeToNextDecision.myY = myTimeToNextDecision.GetMaxValue();

            myAIComponent.myEntityToFollow = myFollowEntity.GetTextBox().Text;
            myAIComponent.myAIMode         = myAIMode.GetDropDown().SelectedIndex + 1;

            myAIComponent.myAITurnRate = StringUtilities.ToFloat(myAiTurnRate.GetTextBox().Text);

            float avoidanceDistance = 0;

            if (myAvoidanceDistance.GetTextBox().Text != "")
            {
                avoidanceDistance = StringUtilities.ToFloat(myAvoidanceDistance.GetTextBox().Text);
            }
            myAIComponent.myAvoidanceDistance   = avoidanceDistance;
            myAIComponent.myAvoidanceOffset.myX = myAvoidanceOffset.GetX();
            myAIComponent.myAvoidanceOffset.myY = myAvoidanceOffset.GetY();
            myAIComponent.myAvoidanceOffset.myZ = myAvoidanceOffset.GetZ();

            EntityEditorForm eForm = (EntityEditorForm)myOwnerForm;

            eForm.SetAIComponent(myAIComponent);
        }
        protected override void SaveSettings()
        {
            EntityEditorForm eForm = (EntityEditorForm)myOwnerForm;

            if (myEntity.myAIComponent.myIsActive == true)
            {
                eForm.SetAIComponent(myEntity.myAIComponent);
            }
            if (myEntity.myCollisionComponent.myIsActive == true)
            {
                eForm.SetCollisionComponent(myEntity.myCollisionComponent);
            }
            if (myEntity.myGraphicsComponent.myIsActive == true)
            {
                eForm.SetGraphicsComponent(myEntity.myGraphicsComponent);
            }
            if (myEntity.myShootingComponent.myIsActive == true)
            {
                eForm.SetShootingComponent(myEntity.myShootingComponent);
            }
            if (myEntity.myHealthComponent.myIsActive == true)
            {
                eForm.SetHealthComponent(myEntity.myHealthComponent);
            }
            if (myEntity.myPhysicsComponent.myIsActive == true)
            {
                eForm.SetPhysicsComponent(myEntity.myPhysicsComponent);
            }
            if (myEntity.myBulletComponent.myIsActive == true)
            {
                eForm.SetBulletComponent(myEntity.myBulletComponent);
            }
            if (myEntity.myPowerUpComponent.myIsActive == true)
            {
                eForm.SetPowerUpComponent(myEntity.myPowerUpComponent);
            }
            if (myEntity.myParticleEmitterComponent.myIsActive == true)
            {
                eForm.SetParticleEmitterComponent(myEntity.myParticleEmitterComponent);
            }
            if (myEntity.mySoundComponent.myIsActive == true)
            {
                eForm.SetSoundComponent(myEntity.mySoundComponent);
            }
            if (myEntity.myStreakEmitterComponent.myIsActive == true)
            {
                eForm.SetStreakEmitterComponent(myEntity.myStreakEmitterComponent);
            }
            eForm.DisplayEntityData();
        }