public void SetActiveSprite(IMultiImagePresenter spr) { this._activeSprite = spr; this.txtSpriteId.Text = this.ActiveSprite?.SpriteId; this.objectListView.SetObjects(this.ActiveSprite?.Frames); if (this.ActiveSprite?.Frames?.Count > 0) { foreach (IFrame f in this.ActiveSprite.Frames) f.PropertyChanged += IFrame_PropertyChanged; this.animationTimer.Enabled = false; } ResetUI(); }
public void SetActiveSprite(IMultiImagePresenter spr) { this._activeSprite = spr; this.txtSpriteId.Text = this.ActiveSprite?.SpriteId; this.objectListView.SetObjects(this.ActiveSprite?.Frames); if (this.ActiveSprite?.Frames?.Count > 0) { foreach (IFrame f in this.ActiveSprite.Frames) { f.PropertyChanged += IFrame_PropertyChanged; } this.animationTimer.Enabled = false; } ResetUI(); }