public bool CheckPopup()
        {
            if (add_action_popup.owner == this)
            {
                //add_action_popup.Draw();
                int index = add_action_popup.clicked_index;

                if (index != -1)
                {
                    //show_popup = false;
                    (action as CGME.ActionGroup).
                    AddAction(dictionary.GetAction(index));
                    add_action_popup.Destroy();
                    return(true);
                }
            }

            return(false);
        }
 CGME.Action GetAction(string name)
 {
     return(dictionary.GetAction(name));
 }