/// <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); }
/// <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; }
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; }
private void AdvTreeGroupNodeCreated(object sender, DataNodeEventArgs e) { e.Node.Style = this.favorite_list.Styles["groupstyle"]; }
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"]; }
private void AdvTree7GroupNodeCreated(object sender, DataNodeEventArgs e) { e.Node.Style = this.channel_list.Styles["groupstyle"]; }