Exemplo n.º 1
0
 /// <summary>
 /// Raises the DataNodeCreated event.
 /// </summary>
 /// <param name="dataNodeEventArgs">Provides event arguments.</param>
 protected virtual void OnDataNodeCreated(DataNodeEventArgs dataNodeEventArgs)
 {
     if (DataNodeCreated != null) DataNodeCreated(this, dataNodeEventArgs);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new node for the data item.
        /// </summary>
        /// <param name="item">Item to create node for.</param>
        /// <returns>New instance of the node.</returns>
        private Node CreateNode(NodeCollection parentCollection, object item, int itemIndex, List<string> fieldNames)
        {
            Node node = new Node();
            parentCollection.Add(node);

            SetNodeData(node, item, fieldNames, itemIndex);

            DataNodeEventArgs eventArgs = new DataNodeEventArgs(node, item);

            OnDataNodeCreated(eventArgs);

            return eventArgs.Node;
        }
Exemplo n.º 3
0
 private Node CreateGroupNode(NodeCollection parentCollection, string text)
 {
     Node node = new Node();
     node.Text = text;
     node.Style = _GroupNodeStyle;
     node.Expanded = true;
     node.Selectable = false;
     parentCollection.Add(node);
     DataNodeEventArgs eventArgs = new DataNodeEventArgs(node, null);
     OnGroupNodeCreated(eventArgs);
     return node;
 }
Exemplo n.º 4
0
 private void AdvTreeGroupNodeCreated(object sender, DataNodeEventArgs e)
 {
     e.Node.Style = this.favorite_list.Styles["groupstyle"];
 }
Exemplo n.º 5
0
 private void AdvTree7DataNodeCreated(object sender, DataNodeEventArgs e)
 {
     e.Node.Cells[1].StyleNormal = this.channel_list.Styles["subitemstyle"];
     e.Node.Cells[2].StyleNormal = this.channel_list.Styles["subitemphone"];
     e.Node.Cells[3].StyleNormal = this.channel_list.Styles["subitemphone"];
 }
Exemplo n.º 6
0
 private void AdvTree7GroupNodeCreated(object sender, DataNodeEventArgs e)
 {
     e.Node.Style = this.channel_list.Styles["groupstyle"];
 }