/// <summary> /// Add a new section node in the context of the previous selection. Pass along the control /// in which the node is added as the selection might be null. The section node is created /// here and will be added when the command is executed. /// </summary> public AddSectionNode(ProjectView.ProjectView view, IControlWithRenamableSelection control) : base(view) { mNode = view.Presentation.CreateSectionNode(); SetParentAndIndex(view); mNode.Used = mParent.Used; mControl = control; view.SelectAndRenameSelection(new NodeSelection(mNode, mControl)); SetDescriptions(Localizer.Message("add_section")); }
public AddSectionNode(ProjectView.ProjectView view, IControlWithRenamableSelection control, string sectionName) : this(view, control) { m_SectionName = sectionName; }