private void add_bool_Click(object sender, EventArgs e)
 {
     InputField ba = new InputField("Enter Text");
     ba.ShowDialog(this);
     if (ba.DialogResult == DialogResult.OK && ba.Input.Length > 0)
     {
         this.bools.Items.Add(ba.Input);
     }
 }
 void framecontrol_DoubleClick(object sender, EventArgs e)
 {
     if (!mAddScripts)
         return;
     string title = String.Format("Script for {0}/{1} ({2})", stateDropDown.Items[mState], mFrame+1, "Test");
     InputField script = new InputField(title);
     script.Input = mData.getScript(mState, mFrame);
     script.ShowDialog(this);
     if (script.DialogResult == DialogResult.OK)
     {
         mData.setScript(mState, mFrame, script.Input);
     }
     this.framecontrol.Invalidate();
 }