private void createClick(object sender, EventArgs e)
 {
     if (NewAnimationDialog.Show(ParentForm, anims) == DialogResult.OK)
     {
         refreshAnimations();
         if (NewAnimationDialog.AutoSelect)
         {
             animationSelector.SelectedIndex = anims.Count - 1;
         }
     }
 }
        public static DialogResult Show(IWin32Window Owner,
                                        List <Animation> Animations)
        {
            NewAnimationDialog nfd = new NewAnimationDialog()
            {
                animations = Animations
            };

            nfd.name.Text = "Animation" + Animations.Count;

            nfd.autosel.Checked = AutoSelect;

            return(nfd.ShowDialog(Owner));
        }