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

C# Tree.TreeModelEventArgs类代码示例

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

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



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

示例1: StructureChanged_event_should_bubble_up

        public void StructureChanged_event_should_bubble_up()
        {
            var flag = false;
            decorator.StructureChanged += (s, e) => { flag = true; };
            var eventArgs = new TreeModelEventArgs(new TreePath(), new object[0]);

            treeModel.Raise(tm => tm.StructureChanged += null, null, eventArgs);

            Assert.IsTrue(flag);
        }
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:10,代码来源:TreeModelDecoratorTest.cs


示例2: model_NodesInserted

 void model_NodesInserted(object sender, TreeModelEventArgs e)
 {
     insert++;
 }
开发者ID:ishani,项目名称:VSOExp,代码行数:4,代码来源:NodeTest.cs


示例3: OnNodeRemoved

 internal void OnNodeRemoved(Node parent, int index, Node node)
 {
     if (NodesRemoved != null)
     {
         TreeModelEventArgs args = new TreeModelEventArgs(GetPath(parent), new int[] { index }, new object[] { node });
         NodesRemoved(this, args);
     }
 }
开发者ID:Celtech,项目名称:BolDevStudio,代码行数:8,代码来源:TreeModel.cs


示例4: OnNodesChanged

		internal protected virtual void OnNodesChanged(Node parent, int index, Node node)
		{
			if (NodesChanged != null)
			{
				TreePath path = GetPath(parent);
				if (path == null) return;
				TreeModelEventArgs args = new TreeModelEventArgs(path, new int[] { index }, new object[] { node });
				NodesChanged(this, args);
			}
		}
开发者ID:montague247,项目名称:treeviewadv,代码行数:10,代码来源:TreeModel.cs


示例5: NotifyNodesChanged

        private void NotifyNodesChanged()
        {
            if (!_notify)
                return;

            var model = FindModel();
            if (model != null)
            {
                TreePath path = model.GetPath(this);
                if (path != null)
                {
                    var args = new TreeModelEventArgs(path, new object[] { this });
                    model.RaiseNodesChanged(args);
                }
            }
        }
开发者ID:kanbang,项目名称:Colt,代码行数:16,代码来源:RepositoryTreeModel.cs


示例6: OnNodeRemoved

 public void OnNodeRemoved(TreeModelEventArgs args)
 {
     if (NodesRemoved != null)
     NodesRemoved(this, args);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:5,代码来源:TreeListAdapter.cs


示例7: ClearNodesSize

 private void ClearNodesSize(TreeModelEventArgs e, TreeNodeAdv parent)
 {
     if (e.Indices != null)
        {
     foreach (int index in e.Indices)
     {
      if (index >= 0 && index < parent.Nodes.Count)
      {
       TreeNodeAdv node = parent.Nodes[index];
       node.Height = node.RightBounds = null;
      }
      else
       throw new ArgumentOutOfRangeException("Index out of range");
     }
        }
        else
        {
     foreach (TreeNodeAdv node in parent.Nodes)
     {
      foreach (object obj in e.Children)
       if (node.Tag == obj)
       {
        node.Height = node.RightBounds = null;
       }
     }
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:27,代码来源:TreeViewAdv.cs


示例8: _model_NodesInserted

        private void _model_NodesInserted(object sender, TreeModelEventArgs e)
        {
            if (e.Indices == null)
            throw new ArgumentNullException("Indices");

               TreeNodeAdv parent = FindNode(e.Path);
               if (parent != null)
               {
            for (int i = 0; i < e.Children.Length; i++)
             AddNewNode(parent, e.Children[i], e.Indices[i]);
               }
               SmartFullUpdate();
        }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:TreeViewAdv.cs


示例9: TreeNodesRemoved

 private void TreeNodesRemoved(object sender, TreeModelEventArgs e)
 {
     OnNodesRemoved(e);
 }
开发者ID:TroutZhang,项目名称:unreal-debugger,代码行数:4,代码来源:WatchPanel.cs


示例10: TreeNodesInserted

 private void TreeNodesInserted(object sender, TreeModelEventArgs e)
 {
     OnNodesInserted(e);
 }
开发者ID:TroutZhang,项目名称:unreal-debugger,代码行数:4,代码来源:WatchPanel.cs


示例11: mTreeModel_NodesRemoved

 /// <summary>
 /// Nodes have been removed.  Remove the event handlers
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void mTreeModel_NodesRemoved(object sender, TreeModelEventArgs e)
 {
     foreach (Node node in e.Children)
     {
         SetHandlers(node, false);
     }
 }
开发者ID:RasterCode,项目名称:OtterUI,代码行数:12,代码来源:SceneHierarchyView.cs


示例12: mTreeModel_NodesInserted

 /// <summary>
 /// Called when new nodes were inserted into the tree model.
 /// We need to set the nodes' event handlers accordingly.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void mTreeModel_NodesInserted(object sender, TreeModelEventArgs e)
 {
     foreach (Node node in e.Children)
     {
         SetHandlers(node, true);
     }
 }
开发者ID:RasterCode,项目名称:OtterUI,代码行数:13,代码来源:SceneHierarchyView.cs


示例13: OnNodesRemoved

 protected void OnNodesRemoved(TreeModelEventArgs args)
 {
     if (NodesRemoved != null)
         NodesRemoved(this, args);
 }
开发者ID:segafan,项目名称:wme1_jankavan_tlc_edition-repo,代码行数:5,代码来源:TreeModelBase.cs


示例14: RaiseNodesChanged

 internal void RaiseNodesChanged(TreeModelEventArgs args)
 {
     base.OnNodesChanged(args);
 }
开发者ID:kanbang,项目名称:Colt,代码行数:4,代码来源:RepositoryTreeModel.cs


示例15: model_NodesRemoved

 void model_NodesRemoved(object sender, TreeModelEventArgs e)
 {
     remove++;
 }
开发者ID:ishani,项目名称:VSOExp,代码行数:4,代码来源:NodeTest.cs


示例16: _treeModel_NodesChanged

        void _treeModel_NodesChanged(object sender, TreeModelEventArgs e)
        {
            if (this.InvokeRequired)
            {
                TreeModelEventDelegate del = new TreeModelEventDelegate(
                    _treeModel_NodesChanged);
                this.Invoke(del, new object[] { sender, e });

                return;
            }

            //authPanel.ValidateChildren();
            _workArea.Invalidate(true);
        }
开发者ID:virl,项目名称:yttrium,代码行数:14,代码来源:MainForm.cs


示例17: _model_NodesChanged

 private void _model_NodesChanged(object sender, TreeModelEventArgs e)
 {
     TreeNodeAdv parent = FindNode(e.Path);
        if (parent != null && parent.IsVisible && parent.IsExpanded)
        {
     if (InvokeRequired)
      Invoke(new UpdateContentWidthDelegate(ClearNodesSize), e, parent);
     else
      ClearNodesSize(e, parent);
     SmartFullUpdate();
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:12,代码来源:TreeViewAdv.cs


示例18: _innerModel_NodesRemoved

 void _innerModel_NodesRemoved(object sender, TreeModelEventArgs e)
 {
     OnStructureChanged(new TreePathEventArgs(e.Path));
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:4,代码来源:SortedTreeModel.cs


示例19: _model_NodesRemoved

        private void _model_NodesRemoved(object sender, TreeModelEventArgs e)
        {
            TreeNodeAdv parent = FindNode(e.Path);
               if (parent != null)
               {
            if (e.Indices != null)
            {
             List<int> list = new List<int>(e.Indices);
             list.Sort();
             for (int n = list.Count - 1; n >= 0; n--)
             {
              int index = list[n];
              if (index >= 0 && index <= parent.Nodes.Count)
               parent.Nodes.RemoveAt(index);
              else
               throw new ArgumentOutOfRangeException("Index out of range");
             }
            }
            else
            {
             for (int i = parent.Nodes.Count - 1; i >= 0; i--)
             {
              for (int n = 0; n < e.Children.Length; n++)
               if (parent.Nodes[i].Tag == e.Children[n])
               {
            parent.Nodes.RemoveAt(i);
            break;
               }
             }
            }
               }

               UpdateSelection();
               SmartFullUpdate();
        }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:35,代码来源:TreeViewAdv.cs


示例20: _model_NodesChanged

 private void _model_NodesChanged(object sender, TreeModelEventArgs e)
 {
     TreeNodeAdv parent = FindNode(e.Path);
     if (parent != null)
     {
         if (e.Indices != null)
         {
             foreach (int index in e.Indices)
             {
                 if (index >= 0 && index < parent.Nodes.Count)
                 {
                     TreeNodeAdv node = parent.Nodes[index];
                     Rectangle rect = GetNodeBounds(node);
                     _contentWidth = Math.Max(_contentWidth, rect.Right);
                 }
                 else
                     throw new ArgumentOutOfRangeException("Index out of range");
             }
         }
         else
         {
             foreach (TreeNodeAdv node in parent.Nodes)
             {
                 foreach (object obj in e.Children)
                     if (node.Tag == obj)
                     {
                         Rectangle rect = GetNodeBounds(node);
                         _contentWidth = Math.Max(_contentWidth, rect.Right);
                     }
             }
         }
     }
     _rowLayout.ClearCache();
     SafeUpdateScrollBars();
     UpdateView();
 }
开发者ID:virl,项目名称:yttrium,代码行数:36,代码来源:TreeViewAdv.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Tree.TreeNodeAdv类代码示例发布时间:2022-05-24
下一篇:
C# Tree.TreeColumn类代码示例发布时间: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