private void OnAddAnimKeyClicked(object sender, EventArgs e) { AnimationTrack animTrack = listView4.Tag as AnimationTrack; if (animTrack == null) return; AnimationKey animKey = new AnimationKey(); SettingDlg dlg = new SettingDlg("New Animation Key", animKey); if (dlg.ShowDialog() != DialogResult.OK) return; animTrack.AnimKeys.Add(animKey); ShowAnimationTrack(animTrack); listView3.Items[listView3.Items.Count - 1].Selected = true; }
void ShowAnimationKey(AnimationKey animKey) { }
public void SetTimePosition(int time) { mCachedKey = CacheAnimationKey(time); // set the sub tracks. foreach (AnimationTrack track in mAnimTracks) track.SetTimePosition(time); }