예제 #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);
 }
예제 #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;
        }
예제 #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;
 }
예제 #4
0
파일: MainForm.cs 프로젝트: legator/SovokTV
 private void AdvTreeGroupNodeCreated(object sender, DataNodeEventArgs e)
 {
     e.Node.Style = this.favorite_list.Styles["groupstyle"];
 }
예제 #5
0
파일: MainForm.cs 프로젝트: legator/SovokTV
 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"];
 }
예제 #6
0
파일: MainForm.cs 프로젝트: legator/SovokTV
 private void AdvTree7GroupNodeCreated(object sender, DataNodeEventArgs e)
 {
     e.Node.Style = this.channel_list.Styles["groupstyle"];
 }