Stetic.Project.AddNewActionGroup C# (CSharp) Method

AddNewActionGroup() public method

public AddNewActionGroup ( XmlElement template ) : Stetic.ActionGroupComponent
template System.Xml.XmlElement
return Stetic.ActionGroupComponent
        public ActionGroupComponent AddNewActionGroup(XmlElement template)
        {
            object ob = ProjectBackend.AddNewActionGroupFromTemplate (template.OuterXml);
            ActionGroupComponent ac = (ActionGroupComponent) App.GetComponent (ob, null, 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;
        }

Same methods

Project::AddNewActionGroup ( string id ) : Stetic.ActionGroupComponent