private void ExpandNewNode(IRnRoledPartic roledPartic) { try { ContainingDataTree.DeepSuspendLayout(); XmlNode caller = null; if (Key.Length > 1) { caller = Key[Key.Length - 2] as XmlNode; } int insPos = IndexInContainer + Record.ParticipantsOC.Count - 1; GenerateChildNode(roledPartic, m_configurationNode, caller, Indent, ref insPos, new ArrayList(Key), new ObjSeqHashMap()); Expansion = DataTree.TreeItemState.ktisExpanded; } finally { ContainingDataTree.DeepResumeLayout(); } }
/// <summary> /// Expand this node, which is at position iSlice in its parent. /// </summary> /// <remarks> I (JH) don't know why this was written to take the index of the slice. /// It's just as easy for this class to find its own index.</remarks> /// <param name="iSlice"></param> public override void Expand(int iSlice) { CheckDisposed(); try { ContainingDataTree.DeepSuspendLayout(); XmlNode caller = null; if (Key.Length > 1) { caller = Key[Key.Length - 2] as XmlNode; } int insPos = iSlice + 1; GenerateChildren(m_configurationNode, caller, m_obj, Indent, ref insPos, new ArrayList(Key), new ObjSeqHashMap(), false); Expansion = DataTree.TreeItemState.ktisExpanded; } finally { ContainingDataTree.DeepResumeLayout(); } }
protected void ExpandNewNode() { try { ContainingDataTree.DeepSuspendLayout(); XmlNode caller = null; if (Key.Length > 1) { caller = Key[Key.Length - 2] as XmlNode; } int insPos = this.IndexInContainer + m_refs.Count; GenerateChildNode(m_refs.Count - 1, m_configurationNode, caller, Indent, ref insPos, new ArrayList(Key), new ObjSeqHashMap()); Expansion = DataTree.TreeItemState.ktisExpanded; } finally { ContainingDataTree.DeepResumeLayout(); } }
/// <summary> /// Expand this node, which is at position iSlice in its parent. /// </summary> /// <remarks> I (JH) don't know why this was written to take the index of the slice. /// It's just as easy for this class to find its own index.</remarks> /// <param name="iSlice"></param> public override void Expand(int iSlice) { CheckDisposed(); try { ContainingDataTree.DeepSuspendLayout(); XmlNode caller = null; if (Key.Length > 1) { caller = Key[Key.Length - 2] as XmlNode; } int insPos = iSlice + 1; GenerateChildren(m_configurationNode, caller, m_obj, Indent, ref insPos, new ArrayList(Key), new ObjSeqHashMap()); Expansion = DataTree.TreeItemState.ktisExpanded; // A crude way to force the +/- icon to be redrawn. // If this gets flashy, we could figure a smaller region to invalidate. ContainingDataTree.Invalidate(true); // Invalidates both children. } finally { ContainingDataTree.DeepResumeLayout(); } }
protected void ExpandNewNode() { try { ContainingDataTree.DeepSuspendLayout(); XmlNode caller = null; if (Key.Length > 1) { caller = Key[Key.Length - 2] as XmlNode; } int insPos = this.IndexInContainer + m_refs.Count; GenerateChildNode(m_refs.Count - 1, m_configurationNode, caller, Indent, ref insPos, new ArrayList(Key), new ObjSeqHashMap()); Expansion = DataTree.TreeItemState.ktisExpanded; // A crude way to force the +/- icon to be redrawn. // If this gets flashy, we could figure a smaller region to invalidate. ContainingDataTree.Invalidate(true); // Invalidates both children. } finally { ContainingDataTree.DeepResumeLayout(); } }