private void FillNode(TreeNode node, CElementDeArbreOperationnel element) { string strText = element.ToString().Split('\n')[0] + " "; if (element.ElementParent != null) { strText += "(" + element.ElementParent.ToString().Split('\n')[0] + ")"; } strText += (element.CoeffOperationnel).ToString("0.##%"); node.Text = strText; node.Tag = element; }
private void AfficheNode(TreeNode node) { CElementDeArbreOperationnel elt = node.Tag as CElementDeArbreOperationnel; if (elt == null) { m_panelDroite.Visible = false; return; } m_panelDroite.Visible = true; m_lblNode.Text = elt.ToString(); m_txtCoeff.DoubleValue = elt.CoeffOperationnel; m_nodeAffiche = node; }