本文整理汇总了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);
}
示例2: IsVisible
public bool IsVisible(SharpTreeNode[] selectedNodes)
{
return selectedNodes.All(n => n is AssemblyTreeNode);
}
示例3: CanDrag
public override bool CanDrag(SharpTreeNode[] nodes)
{
return nodes.All(n => n is AssemblyTreeNode);
}
示例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();
}
}
示例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;
});
}
示例6: IsVisible
public bool IsVisible(SharpTreeNode[] selectedNodes)
{
return (selectedNodes.All(n => n is TypeTreeNode));
}
示例7: CanDelete
public override bool CanDelete(SharpTreeNode[] nodes)
{
return nodes.All(n => n is SharpTreeNodeAdapter)
&& nodes.Cast<SharpTreeNodeAdapter>().All(n => n.Node.CanDelete);
}
示例8: CanDelete
public override bool CanDelete(SharpTreeNode[] nodes)
{
return nodes.All(node => node.Parent != null);
}
示例9: IsVisible
public bool IsVisible(SharpTreeNode[] selectedNodes)
{
return selectedNodes.All(nd => nd is IMemberTreeNode || nd is AssemblyTreeNode);
}