public NodeSolution SetSolutionName(FieldSolutionName SolutionName) { if (SolutionName == null) { throw new ArgumentNullException(m_SolutionNameName); } return(new NodeSolution(this.SetField(new FieldIdentifier(m_SolutionNameName), SolutionName), ChildCollection)); }
public override void HeaderEditAccept() { base.HeaderEditAccept(); bool accepted = FieldSolutionName.CheckSyntax(HeaderEdit); if (accepted) { Solution = Solution.SetSolutionName(new FieldSolutionName(HeaderEdit)); } else { HeaderEdit = Solution.SolutionName.ToString(); } }
public static NodeSolution BuildWith(FieldSolutionName SolutionName, FieldLayout Layout) { //build fields Dictionary <FieldIdentifier, FieldBase> mutableFields = new Dictionary <FieldIdentifier, FieldBase>(); mutableFields.Add(new FieldIdentifier(m_SolutionNameName), SolutionName); mutableFields.Add(new FieldIdentifier(m_LayoutName), Layout); //build children KeyedNodeCollection <NodeBase> mutableChildren = new KeyedNodeCollection <NodeBase>(); //Add Children here: mutableChildren.Add(SomeChild); //build node NodeSolution Builder = new NodeSolution( new ReadOnlyDictionary <FieldIdentifier, FieldBase>(mutableFields), new ReadOnlyCollection <NodeBase>(mutableChildren)); return(Builder); }
public static NodeSolution BuildWith(FieldSolutionName SolutionName, FieldLayout Layout) { //build fields Dictionary<FieldIdentifier, FieldBase> mutableFields = new Dictionary<FieldIdentifier, FieldBase>(); mutableFields.Add(new FieldIdentifier(m_SolutionNameName), SolutionName); mutableFields.Add(new FieldIdentifier(m_LayoutName), Layout); //build children KeyedNodeCollection<NodeBase> mutableChildren = new KeyedNodeCollection<NodeBase>(); //Add Children here: mutableChildren.Add(SomeChild); //build node NodeSolution Builder = new NodeSolution( new ReadOnlyDictionary<FieldIdentifier, FieldBase>(mutableFields), new ReadOnlyCollection<NodeBase>(mutableChildren)); return Builder; }
public NodeSolution SetSolutionName(FieldSolutionName SolutionName) { if (SolutionName == null) { throw new ArgumentNullException(m_SolutionNameName); } return new NodeSolution(this.SetField(new FieldIdentifier(m_SolutionNameName), SolutionName), ChildCollection); }