コード例 #1
0
ファイル: FrmMain.cs プロジェクト: theniceboy/CW-Mind-Mapper
 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);	
			}
		}