Пример #1
0
            /// <summary>
            /// Removes the item from its associated <see cref="T:System.Windows.Forms.ListView"/> control.
            /// </summary>
            public override void Remove()
            {
                asset.DrawableAssetChanged -= new EventHandler(animation_DrawableAssetChanged);
                animationsView              = null;

                base.Remove();
            }
Пример #2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="AnimationListViewItem"/> class.
            /// </summary>
            /// <param name="animation">The animation.</param>
            /// <param name="animationsView"><see cref="AnimationsView"/> where is the item used.</param>
            public AnimationListViewItem(Animation animation, AnimationsView animationsView)
                : base(animation)
            {
                this.animationsView = animationsView;

                asset.DrawableAssetChanged += new EventHandler(animation_DrawableAssetChanged);

                if (asset.Frames.Count != 0)
                {
                    currentFirstFrame = asset.Frames[0];
                }
            }