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(); }
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(); }
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); }
public override void Clear(bool RaiseChangedEvent) { base.Clear(RaiseChangedEvent); flags.Clear(RaiseChangedEvent); }