private void btnNewTrans_Click(object sender, EventArgs e)
        {
            SMTransition transition = new SMTransition("");
            string       newName    = transition.ValidateName(_actTransFlow, "");

            transition.Name            = newName;
            transition.ParentContainer = _actTransFlow.ParentContainer;
            transition.StateMachine    = _actTransFlow.StateMachine;
            _actTransFlow.AddTransition(transition);
            treeComponents.Nodes.Clear();
            _actTransFlow.Rebuild();
            Rebuild();
        }
        private void btnOk_Click(object sender, EventArgs e)
        {
            _actTransFlowItem.Text = tbText.Text;
            int i = 0;

            for (; i < _list.Count - 1; i++)
            {
                if (i < _actTransFlowItem.Count)
                {
                    string oldVal = (_actTransFlowItem[i] as SMMethod).MethodID;
                    if (oldVal != _list[i].ID)
                    {
                        (_actTransFlowItem[i] as SMMethod).MethodID = _list[i].ID;
                        U.LogChange(string.Format("{0}.Method-{1}", _actTransFlowItem.Nickname, i), oldVal, _list[i].ID);
                    }
                }
                else
                {
                    SMMethod method = new SMMethod(string.Empty);
                    _actTransFlowItem.Add(method);
                    method.MethodID = _list[i].ID;
                    U.LogChangeAdded(string.Format("{0}.Method-{1} : {2}", _actTransFlowItem.Nickname, i, method.MethodID));
                }
            }

            int count = _actTransFlowItem.Count;

            for (; i < count; i++)
            {
                int iRemove = _actTransFlowItem.Count - 1;
                U.LogChangeRemoved(string.Format("{0}.Method-{1} : {2}", _actTransFlowItem.Nickname, iRemove, (_actTransFlowItem[iRemove] as SMMethod).MethodID));
                _actTransFlowItem.RemoveLast();
            }
            _actTransFlowItem.Rebuild();
            _containerPanel.Redraw(_actTransFlowItem);
            Close();
        }