コード例 #1
0
 private void btnMvDown_Click(object sender, EventArgs e)
 {
     ExternalAnimationChain.Reverse(lbChainList.SelectedIndex, 2);
     lbChainList.SelectedIndex++;
     bSource.ResetBindings(true);
     lbChainList.Refresh();
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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();
 }