private void btnMvDown_Click(object sender, EventArgs e) { ExternalAnimationChain.Reverse(lbChainList.SelectedIndex, 2); lbChainList.SelectedIndex++; bSource.ResetBindings(true); lbChainList.Refresh(); }
private void btnAddSelected_Click(object sender, EventArgs e) { ExternalAnimationChain.Add((ExternalAnimation)composerForm.cbAnims.SelectedItem); bSource.ResetBindings(true); nudChainlink.Maximum = Math.Max(0, ExternalAnimationChain.Count - 1); if (ExternalAnimationChain.Count > 0) { btnPlayChain.Enabled = true; } }
private void btnRemove_Click(object sender, EventArgs e) { if (lbChainList.SelectedItem != null) { ExternalAnimationChain.RemoveAt(lbChainList.SelectedIndex); } if (ExternalAnimationChain.Count == 0) { btnPlayChain.Enabled = false; } lbChainList_SelectedIndexChanged(null, null); bSource.ResetBindings(true); lbChainList.Refresh(); }