예제 #1
0
 private void mindmap_AfterNodeSelect(object sender, TreeGXNodeEventArgs e)
 {
     nodeinput.Text = Gib.nowmmap.SelectedNode.Text;
     nodeinput.Focus();
     nodeinput.SelectAll();
 }
예제 #2
0
		private void SetExpanded(bool e, eTreeAction action)
		{
			if(e==m_Expanded)
				return;

			INodeNotify notification=GetINodeNotify();
			if(notification!=null)
			{
				TreeGXNodeCancelEventArgs cancelArgs=new TreeGXNodeCancelEventArgs(action , this);
				if(e)
					notification.OnBeforeExpand(cancelArgs);
				else
					notification.OnBeforeCollapse(cancelArgs);
				if(cancelArgs.Cancel)
					return;				
			}
#if TRIAL
			if(NodeOperations.ColorCountExp==0)
				return;
#endif
			m_Expanded=e;
			
			if(notification!=null)
				notification.ExpandedChanged(this);
			
			if(notification!=null)
			{
				TreeGXNodeEventArgs args=new TreeGXNodeEventArgs(action,this);
				if(e)
					notification.OnAfterExpand(args);
				else
					notification.OnAfterCollapse(args);
			}
			
			foreach(Node node in this.Nodes)
			{
				node.OnParentExpandedChanged(m_Expanded);	
			}
		}