Exemple #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);
     }
 }
		/// <summary>
		/// Will bubble <see cref="E:NodeByIndexAdjusted"/> event.
		/// </summary>
		/// <param name="e"></param>
		protected virtual void OnNodeByIndexAdjusted(NuGenIndexedTreeNodeEventArgs e)
		{
			this.InvokeActionT<NuGenIndexedTreeNodeEventArgs>(eventNodeByIndexAdjusted, e);
		}
		/// <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);
			}
		}
Exemple #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);
 }