Пример #1
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            if (RaiseChangedEvent)
            {
                OverlayFileRID     = 0;
                NameRID            = 0;
                LightFlags         = 0;
                LightIntensity     = 0;
                LightColor         = 0;
                FirstAnimationType = 0;
                ColorTranslation   = 0;
                Effect             = 0;

                if (animation != null)
                {
                    animation.PropertyChanged -= OnAnimationPropertyChanged;
                }

                Animation = new AnimationNone();
                animation.PropertyChanged += OnAnimationPropertyChanged;

                Name        = String.Empty;
                OverlayFile = String.Empty;
                Resource    = null;
            }
            else
            {
                overlayFileRID     = 0;
                nameRID            = 0;
                lightFlags         = 0;
                lightIntensity     = 0;
                lightColor         = 0;
                firstAnimationType = 0;
                colorTranslation   = 0;
                effect             = 0;

                if (animation != null)
                {
                    animation.PropertyChanged -= OnAnimationPropertyChanged;
                }

                animation = new AnimationNone();
                animation.PropertyChanged += OnAnimationPropertyChanged;

                name        = String.Empty;
                overlayFile = String.Empty;
                resource    = null;
            }

            flags.Clear(RaiseChangedEvent);
            subOverlays.Clear();
        }
Пример #2
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            if (RaiseChangedEvent)
            {
                OverlayFileRID     = 0;
                NameRID            = 0;
                LightFlags         = 0;
                LightIntensity     = 0;
                LightColor         = 0;
                FirstAnimationType = 0;
                ColorTranslation   = 0;
                Effect             = 0;
                Animation          = new AnimationNone();

                MotionFirstAnimationType = 0;
                MotionColorTranslation   = 0;
                MotionEffect             = 0;
                MotionAnimation          = new AnimationNone();

                Name        = String.Empty;
                OverlayFile = String.Empty;
            }
            else
            {
                overlayFileRID     = 0;
                nameRID            = 0;
                lightFlags         = 0;
                lightIntensity     = 0;
                lightColor         = 0;
                firstAnimationType = 0;
                colorTranslation   = 0;
                effect             = 0;
                animation          = new AnimationNone();

                motionFirstAnimationType = 0;
                motionColorTranslation   = 0;
                motionEffect             = 0;
                motionAnimation          = new AnimationNone();

                name        = String.Empty;
                overlayFile = String.Empty;
            }

            flags.Clear(RaiseChangedEvent);
            subOverlays.Clear();
            motionSubOverlays.Clear();
        }
Пример #3
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            if (RaiseChangedEvent)
            {
                NameRID = 0;
                Name    = String.Empty;
            }
            else
            {
                nameRID = 0;
                name    = String.Empty;
            }

            flags.Clear(RaiseChangedEvent);
        }
Пример #4
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            flags.Clear(RaiseChangedEvent);
        }