コード例 #1
0
 /// <summary>
 /// </summary>
 public NuGenTreeNode this[int nodeIndex]
 {
     get
     {
         NuGenIndexedTreeNodeEventArgs eventArgs = new NuGenIndexedTreeNodeEventArgs(nodeIndex);
         this.OnNodeByIndexRequested(eventArgs);
         return(eventArgs.TreeNode);
     }
     set
     {
         NuGenIndexedTreeNodeEventArgs eventArgs = new NuGenIndexedTreeNodeEventArgs(nodeIndex, value);
         this.OnNodeByIndexAdjusted(eventArgs);
     }
 }
コード例 #2
0
		/// <summary>
		/// Will bubble <see cref="E:NodeByIndexAdjusted"/> event.
		/// </summary>
		/// <param name="e"></param>
		protected virtual void OnNodeByIndexAdjusted(NuGenIndexedTreeNodeEventArgs e)
		{
			this.InvokeActionT<NuGenIndexedTreeNodeEventArgs>(eventNodeByIndexAdjusted, e);
		}
コード例 #3
0
		/// <summary>
		/// </summary>
		public NuGenTreeNode this[int nodeIndex]
		{
			get
			{
				NuGenIndexedTreeNodeEventArgs eventArgs = new NuGenIndexedTreeNodeEventArgs(nodeIndex);
				this.OnNodeByIndexRequested(eventArgs);
				return eventArgs.TreeNode;
			}
			set
			{
				NuGenIndexedTreeNodeEventArgs eventArgs = new NuGenIndexedTreeNodeEventArgs(nodeIndex, value);
				this.OnNodeByIndexAdjusted(eventArgs);
			}
		}
コード例 #4
0
 /// <summary>
 /// Will bubble <see cref="E:NodeByIndexAdjusted"/> event.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnNodeByIndexAdjusted(NuGenIndexedTreeNodeEventArgs e)
 {
     this.InvokeActionT <NuGenIndexedTreeNodeEventArgs>(eventNodeByIndexAdjusted, e);
 }