private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         current = anims[listBox1.SelectedIndex];
         frame.SetList(null);
         move = 0;
         RefreshItems();
         RefreshCol();
         currFrame = 0;
         if (current.frames.Count == 0)
         {
             frame.SetImage(null);
         }
         else
         {
             frame.SetImage(current.frames[0]);
         }
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     Animation a = new Animation();
     a.collision.Add( new List<CollisionList>());
     anims.Add(a);
     listBox1.Items.Add("default");
     current = a;
 }