private void                tsButton_Add_Click(object aSender, EventArgs aEventArgs)
        {
            bool lExit = false;
            var  lName = "State" + (mCSharpFSMClone.StateCount + 1).ToString();

            do
            {
                try
                {
                    lName = StringForm.getString(lName, this, "Add State");
                    if (lName != null)
                    {
                        if (mCSharpFSMClone.isStateExists(lName))
                        {
                            throw new ArgumentException("State '" + lName + "' already exists. ");
                        }

                        CSScipt lScript = new CSScipt(mBrowser);
                        if (lScript.setupByForm(lName, this) == DialogResult.OK)
                        {
                            mCSharpFSMClone.addState(lName, lScript);

                            updateForm();
                            updateButtons();
                        }

                        lExit = true;
                    }
                }
                catch (Exception lExc)
                {
                    MessageForm.showMessage(lExc.Message, this);
                }
            }while (lName != null && lExit == false);
        }
 public DialogResult                                 setupByForm(IWin32Window aOwner)
 {
     return(mCSScript.setupByForm("Script.CSharp", aOwner));
 }