public void ShowForm()
        {
            if (form == null || form.IsDisposed)
            {
                form = new ComposerForm();
            }

            if (!form.Visible)
            {
                form.Show();
            }

            if (form.WindowState == FormWindowState.Minimized)
            {
                form.WindowState = FormWindowState.Normal;
            }
        }
Beispiel #2
0
 public ChainerForm(ComposerForm parentForm)
 {
     InitializeComponent();
     if (parentForm == null)
     {
         Close();
     }
     else
     {
         composerForm = parentForm;
     }
     bSource = new BindingSource
     {
         DataSource = ExternalAnimationChain
     };
     lbChainList.DisplayMember       = "AnimName";
     lbChainList.DataSource          = bSource;
     nudChainlink.Maximum            = 0;
     OnAnimationChainIndexChange    += () => UpdateChainlinkIndex();
     OnAnimationChainPlaybackChange += (p) => UpdatePlayChainButtonText(p);
 }