12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.Drawing;
- namespace Microsoft.Windows.Forms.Animate
- {
-
-
-
- internal sealed class AnimationFrame : DisposableMini
- {
- private AnimationFrameType m_FrameType;
-
-
-
- public AnimationFrameType FrameType
- {
- get
- {
- return this.m_FrameType;
- }
- }
- private object m_Value;
-
-
-
- public object Value
- {
- get
- {
- return this.m_Value;
- }
- }
-
-
-
-
- public AnimationFrame(Color color)
- {
- this.m_Value = color;
- this.m_FrameType = AnimationFrameType.Color;
- }
-
-
-
-
- public AnimationFrame(Image image)
- {
- this.m_Value = image;
- this.m_FrameType = AnimationFrameType.Image;
- }
-
-
-
-
- protected override void Dispose(bool disposing)
- {
- if (this.m_Value != null)
- {
- IDisposable disposable = this.m_Value as IDisposable;
- if (disposable != null)
- disposable.Dispose();
- this.m_Value = null;
- }
- }
- }
- }
|