当前位置: 首页>>代码示例>>C#>>正文


C# SharpTreeNode.All方法代码示例

本文整理汇总了C#中ICSharpCode.TreeView.SharpTreeNode.All方法的典型用法代码示例。如果您正苦于以下问题:C# SharpTreeNode.All方法的具体用法?C# SharpTreeNode.All怎么用?C# SharpTreeNode.All使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICSharpCode.TreeView.SharpTreeNode的用法示例。


在下文中一共展示了SharpTreeNode.All方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IsVisible

        public bool IsVisible(SharpTreeNode[] selectedNodes)
        {
            if (WindowManager.AssemblyBrowsers.Count != 1)
            {
                return false;
            }

            var window = WindowManager.AssemblyBrowsers.Single();
            if (!window.ViewModel.Screen.AllowAssemblyDrop)
            {
                return false;
            }

            return selectedNodes.All(n => n is AssemblyTreeNode);
        }
开发者ID:dalebrubaker,项目名称:ILSpy-Visualizer-Plugin,代码行数:15,代码来源:AddAssemblyContextMenuEntry.cs

示例2: IsVisible

		public bool IsVisible(SharpTreeNode[] selectedNodes)
		{
			return selectedNodes.All(n => n is AssemblyTreeNode);
		}
开发者ID:keremkusmezer,项目名称:ILSpy,代码行数:4,代码来源:AssemblyTreeNode.cs

示例3: CanDrag

		public override bool CanDrag(SharpTreeNode[] nodes)
		{
			return nodes.All(n => n is AssemblyTreeNode);
		}
开发者ID:keremkusmezer,项目名称:ILSpy,代码行数:4,代码来源:AssemblyTreeNode.cs

示例4: StartDrag

		public virtual void StartDrag(DependencyObject dragSource, SharpTreeNode[] nodes)
		{
			DragDropEffects effects = DragDropEffects.All;
			if (!nodes.All(n => n.CanDelete()))
				effects &= ~DragDropEffects.Move;
			DragDropEffects result = DragDrop.DoDragDrop(dragSource, Copy(nodes), effects);
			if (result == DragDropEffects.Move) {
				foreach (SharpTreeNode node in nodes)
					node.DeleteCore();
			}
		}
开发者ID:nakijun,项目名称:dnSpy,代码行数:11,代码来源:SharpTreeNode.cs

示例5: IsVisible

		public bool IsVisible(SharpTreeNode[] selectedNodes)
		{
			return selectedNodes.All(
				delegate (SharpTreeNode n) {
					AssemblyTreeNode a = n as AssemblyTreeNode;
					if (a == null)
						return false;
					AssemblyDefinition asm = a.LoadedAssembly.AssemblyDefinition;
					return asm != null && asm.EntryPoint != null;
				});
		}
开发者ID:95ulisse,项目名称:ILEdit,代码行数:11,代码来源:DebuggerCommands.cs

示例6: IsVisible

 public bool IsVisible(SharpTreeNode[] selectedNodes)
 {
     return (selectedNodes.All(n => n is TypeTreeNode));
 }
开发者ID:saeidmh83,项目名称:AssemblyVisualizer,代码行数:4,代码来源:BrowseInteractionsContextMenuEntry.cs

示例7: CanDelete

		public override bool CanDelete(SharpTreeNode[] nodes)
		{
			return nodes.All(n => n is SharpTreeNodeAdapter)
				&& nodes.Cast<SharpTreeNodeAdapter>().All(n => n.Node.CanDelete);
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:5,代码来源:SharpTreeNodeAdapter.cs

示例8: CanDelete

		public override bool CanDelete(SharpTreeNode[] nodes)
		{
			return nodes.All(node => node.Parent != null);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:4,代码来源:XamlOutlineNode.cs

示例9: IsVisible

		public bool IsVisible(SharpTreeNode[] selectedNodes)
		{
			return selectedNodes.All(nd => nd is IMemberTreeNode || nd is AssemblyTreeNode);
		}
开发者ID:arturek,项目名称:ILSpy,代码行数:4,代码来源:OpenInNewTabContextMenuEntry.cs


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