AddNewActionGroup() 공개 메소드

public AddNewActionGroup ( string name ) : Stetic.Wrapper.ActionGroup
name string
리턴 Stetic.Wrapper.ActionGroup
예제 #1
0
        public ActionGroupComponent AddNewActionGroup(string id)
        {
            object ob = ProjectBackend.AddNewActionGroup(id);
            ActionGroupComponent ac = (ActionGroupComponent)App.GetComponent(ob, id, null);

            // Don't wait for the group added event to come to update the groups list since
            // it may be too late.
            ActionGroupInfo gi = GetActionGroup(ac.Name);

            if (gi == null)
            {
                gi = new ActionGroupInfo(this, ac.Name);
                groups.Add(gi);
            }
            return(ac);
        }