コード例 #1
0
ファイル: TreeNodeEx.cs プロジェクト: RubisetCie/box2c
		public TreeNodeExParent(TreeViewEx view)
		{
			IsNode = false;
			Node = null;
			TreeView = view;
		}
コード例 #2
0
ファイル: TreeNodeEx.cs プロジェクト: RubisetCie/box2c
		private void RemoveRecurse()
		{
			// Remove children.
			// FIXME: why?
			/*for (int i = 0; i < childCount; i++)
			{
				children[i].RemoveRecurse();
			}*/
			// Remove out of parent's children.
			for (int i = index; i < parent.childCount - 1; i++)
			{
				TreeNodeEx node = parent.children[i + 1];
				node.index = i;
				parent.children[i] = node;
			}
			parent.childCount--;
			parent = null;
			treeView = null;
		}
コード例 #3
0
ファイル: TreeNodeEx.cs プロジェクト: RubisetCie/box2c
		internal TreeNodeEx(TreeViewEx treeView)
			: this()
		{
			this.treeView = treeView;
		}
コード例 #4
0
ファイル: TreeNodeEx.cs プロジェクト: RubisetCie/box2c
		// Not used in this implementation
		public static TreeNodeEx FromHandle(TreeViewEx tree, IntPtr handle)
		{
			return null;
		}