• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Tree.TreeNodeAdvMouseEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Aga.Controls.Tree.TreeNodeAdvMouseEventArgs的典型用法代码示例。如果您正苦于以下问题:C# TreeNodeAdvMouseEventArgs类的具体用法?C# TreeNodeAdvMouseEventArgs怎么用?C# TreeNodeAdvMouseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TreeNodeAdvMouseEventArgs类属于Aga.Controls.Tree命名空间,在下文中一共展示了TreeNodeAdvMouseEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MouseDoubleClick

        public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
        {
            base.MouseDoubleClick(args);
            Entry ent = args.Node.Tag as Entry;

            ((FileEditorGUI)this.Parent.Model).OnModifyEntry(ent, args.Node);
        }
开发者ID:yuo123,项目名称:CK2Editor,代码行数:7,代码来源:EntryNameNodeText.cs


示例2: MouseDown

		public override void MouseDown(TreeNodeAdvMouseEventArgs args)
		{
			if (args.Node != null)
			{
				Tree.ItemDragMode = true;
				Tree.ItemDragStart = args.Location;

				if (args.Button == MouseButtons.Left || args.Button == MouseButtons.Right)
				{
					Tree.BeginUpdate();
					try
					{
						Tree.CurrentNode = args.Node;
						if (args.Node.IsSelected)
							_mouseDownFlag = true;
						else
						{
							_mouseDownFlag = false;
							DoMouseOperation(args);
						}
					}
					finally
					{
						Tree.EndUpdate();
					}
				}

			}
			else
			{
				Tree.ItemDragMode = false;
				MouseDownAtEmptySpace(args);
			}
		}
开发者ID:ASK-sa,项目名称:ASK.ServEasy,代码行数:34,代码来源:NormalInputState.cs


示例3: MouseDown

        public override void MouseDown(TreeNodeAdvMouseEventArgs args)
        {
            // Handling of the right click does not need view update
            if (args.Button != MouseButtons.Right)
            {
                Tree.ChangeInput();
                Tree.UpdateView();
            }

            Tree.OnColumnClicked(Column, args.Button);
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:11,代码来源:ClickColumnState.cs


示例4: DoMouseOperation

 protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
 {
     if (Tree.SelectionMode == TreeSelectionMode.Single)
     {
         base.DoMouseOperation(args);
     }
     else if (CanSelect(args.Node))
     {
         args.Node.IsSelected = !args.Node.IsSelected;
         Tree.SelectionStart = args.Node;
     }
 }
开发者ID:Neverbirth,项目名称:flashdevelop,代码行数:12,代码来源:InputWithControl.cs


示例5: _treeView_NodeMouseDoubleClick

 private void _treeView_NodeMouseDoubleClick(object sender, TreeNodeAdvMouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         BaseContentInventoryNode node = e.Node.Tag as BaseContentInventoryNode;
         if (node != null)
         {
             e.Handled = true;
             EditNode(node.Content);
         }
     }
 }
开发者ID:AlexandrSurkov,项目名称:PKStudio,代码行数:12,代码来源:InventoryExplorer.cs


示例6: MouseDown

		public override void MouseDown(TreeNodeAdvMouseEventArgs args)
		{
			TreeNode content = ((TreeViewVarNode)args.Node).Content;
			if (content is IContextMenu && args.Button == MouseButtons.Right) {
				ContextMenuStrip menu = ((IContextMenu)content).GetContextMenu();
				if (menu != null) {
					menu.Show(args.Node.Tree, args.Location);
					args.Handled = true;
				}
			} else {
				base.MouseDown(args);
			}
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:13,代码来源:TreeViewVarNode.cs


示例7: DoMouseOperation

 protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
 {
     if (Tree.SelectionMode == TreeSelectionMode.Single || Tree.SelectionStart == null)
     {
         base.DoMouseOperation(args);
     }
     else if (CanSelect(args.Node))
     {
         Tree.SuspendSelectionEvent = true;
         try
         {
             SelectAllFromStart(args.Node);
         }
         finally
         {
             Tree.SuspendSelectionEvent = false;
         }
     }
 }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:19,代码来源:InputWithShift.cs


示例8: CreateMouseArgs

 private TreeNodeAdvMouseEventArgs CreateMouseArgs(MouseEventArgs e)
 {
     TreeNodeAdvMouseEventArgs args = new TreeNodeAdvMouseEventArgs(e);
     args.ViewLocation = new Point(e.X + OffsetX,
         e.Y + _rowLayout.GetRowBounds(FirstVisibleRow).Y - ColumnHeaderHeight);
     args.ModifierKeys = ModifierKeys;
     args.Node = GetNodeAt(e.Location);
     NodeControlInfo info = GetNodeControlInfoAt(args.Node, e.Location);
     args.ControlBounds = info.Bounds;
     args.Control = info.Control;
     return args;
 }
开发者ID:redoz,项目名称:bitdiffer,代码行数:12,代码来源:TreeViewAdv.Input.cs


示例9: MouseDownAtEmptySpace

 protected virtual void MouseDownAtEmptySpace(TreeNodeAdvMouseEventArgs args)
 {
     Tree.ClearSelectionInternal();
 }
开发者ID:redoz,项目名称:bitdiffer,代码行数:4,代码来源:NormalInputState.cs


示例10: MouseUp

 public override void MouseUp(TreeNodeAdvMouseEventArgs args)
 {
     Tree.ItemDragMode = false;
     if (_mouseDownFlag)
     {
         if (args.Button == MouseButtons.Left)
             DoMouseOperation(args);
         else if (args.Button == MouseButtons.Right)
             Tree.CurrentNode = args.Node;
     }
     _mouseDownFlag = false;
 }
开发者ID:redoz,项目名称:bitdiffer,代码行数:12,代码来源:NormalInputState.cs


示例11: MouseDown

		public override void MouseDown(TreeNodeAdvMouseEventArgs args)
		{
		}
开发者ID:ImaginationSydney,项目名称:flashdevelop,代码行数:3,代码来源:ReorderColumnState.cs


示例12: OnSelectNode

        private void OnSelectNode(object sender, TreeNodeAdvMouseEventArgs e)
        {
            SetSelectedObject(e.Node);

            DialogResult = DialogResult.OK;
            Close();
        }
开发者ID:BraveSirAndrew,项目名称:duality,代码行数:7,代码来源:ObjectSelector.cs


示例13: DoMouseOperation

		protected virtual void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
		{
			if (Tree.SelectedNodes.Count == 1 && args.Node != null && args.Node.IsSelected)
				return;

			Tree.SuspendSelectionEvent = true;
			try
			{
				Tree.ClearSelectionInternal();
				if (args.Node != null)
					args.Node.IsSelected = true;
				Tree.SelectionStart = args.Node;
			}
			finally
			{
				Tree.SuspendSelectionEvent = false;
			}
		}
开发者ID:Andrea,项目名称:duality-withsvn-history,代码行数:18,代码来源:NormalInputState.cs


示例14: DoMouseOperation

		protected virtual void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
		{
			this.Tree.SuspendSelectionEvent = true;
			try
			{
				this.Tree.ClearSelectionInternal();
				if (args.Node != null)
					args.Node.IsSelected = true;
				this.Tree.SelectionStart = args.Node;
			}
			finally
			{
				this.Tree.SuspendSelectionEvent = false;
			}
		}
开发者ID:john-peterson,项目名称:processhacker,代码行数:15,代码来源:NormalInputState.cs


示例15: MouseUp

		public override void MouseUp(TreeNodeAdvMouseEventArgs args)
		{
			if (_mouseDownFlag)
			{
				switch (args.Button)
				{
				    case MouseButtons.Left:
				        this.DoMouseOperation(args);
				        break;
				    case MouseButtons.Right:
				        this.Tree.CurrentNode = args.Node;
				        break;
				}
			}
			_mouseDownFlag = false;
		}
开发者ID:john-peterson,项目名称:processhacker,代码行数:16,代码来源:NormalInputState.cs


示例16: columnsTreeView_NodeMouseDoubleClick

        private void columnsTreeView_NodeMouseDoubleClick(object sender, TreeNodeAdvMouseEventArgs e)
        {
            if (e.Node != null && e.Node.Tag != null)
              {
            GrtListNode node = e.Node.Tag as GrtListNode;

            if (node != null && e.Control == columnIconNodeControl)
            {
              int isPk;

              columnsListModel.GrtList.get_field(node.NodeId,
            (int)MySQLTableColumnsListWrapper.MySQLColumnListColumns.IsPK, out isPk);

              columnsListModel.GrtList.set_field(node.NodeId,
            (int)MySQLTableColumnsListWrapper.MySQLColumnListColumns.IsPK, (isPk + 1) % 2);
            }
            else if (e.Control is AdvNodeTextBox)
            {
              AdvNodeTextBox tbox = e.Control as AdvNodeTextBox;
              tbox.BeginEdit();
            }
            else if (e.Control is AdvNodeComboBox)
            {
              AdvNodeComboBox tbox = e.Control as AdvNodeComboBox;
              tbox.BeginEdit();
            }
              }
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:28,代码来源:DbMysqlTableEditor.cs


示例17: OnNodeMouseDoubleClick

 private void OnNodeMouseDoubleClick(TreeNodeAdvMouseEventArgs args)
 {
     if (NodeMouseDoubleClick != null)
     NodeMouseDoubleClick(this, args);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:5,代码来源:TreeViewAdv.cs


示例18: treeViewAdv1_NodeMouseClick

		private void treeViewAdv1_NodeMouseClick(object sender, TreeNodeAdvMouseEventArgs e)
		{
			if (treeViewAdv1.SelectedNodes.Count == 1)
			{
			    if (treeViewAdv1.SelectedNode != null)
			    {
			        if (treeViewAdv1.SelectedNode.Tag != null)
			        {
			            var tempNode = (ElasticNode)treeViewAdv1.SelectedNode.Tag;
			            if (tempNode != null && tempNode.IndexStatus != null)
			            {
			                toolStripStatusLabel1.Text = tempNode.IndexStatus.ToString();
			            }
			            else if(treeViewAdv1.SelectedNode.Level==4)
			            {
			                WriteLog("\r\n-----\r\n");
			                WriteLog("\r\n");
			                var type = (treeViewAdv1.SelectedNode.Tag as ElasticNode).Tag as TypeSetting;
			                WriteLog(JsonSerializer.Get(type,true));
			            }
			        }
			    }
			}
		}
开发者ID:daniellm,项目名称:ElasticSearch.Net,代码行数:24,代码来源:Form1.cs


示例19: treeView_NodeMouseDoubleClick

 private void treeView_NodeMouseDoubleClick(object sender, 
     TreeNodeAdvMouseEventArgs e)
 {
     SensorNode node = e.Node.Tag as SensorNode;
       if (node != null && node.Sensor != null &&
     node.Sensor.Parameters.Length > 0) {
     ShowParameterForm(node.Sensor);
       }
 }
开发者ID:kurdtkobain,项目名称:openhardwaremonitor,代码行数:9,代码来源:MainForm.cs


示例20: Tree_NameNodeMouseClick

 void Tree_NameNodeMouseClick(object sender, TreeNodeAdvMouseEventArgs e)
 {
     if (e.Node.Level == 1 && e.Control == NameNodeTextBox && !e.Node.CanExpand && (Tree.SelectedNode == null || Tree.SelectedNode == e.Node))
     {
         NameNodeTextBox.BeginEdit();
         e.Handled = true;
     }
 }
开发者ID:CamWiseOwl,项目名称:flashdevelop,代码行数:8,代码来源:DataTreeControl.cs



注:本文中的Aga.Controls.Tree.TreeNodeAdvMouseEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Tree.TreePath类代码示例发布时间:2022-05-24
下一篇:
C# Tree.TreeNodeAdv类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap