void AnimationSourceXnaPanel_MouseDown(object sender, MouseEventArgs e) { if (this._frames > 0) this.SelectedId = e.X / (Width / this._frames); }