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


C# GroupCapabilities类代码示例

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


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

示例1: PasteIntoNodePred

 private bool PasteIntoNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.PasteIntoNodeCapabilities;
     return (dataNode != null) && dataNode.CanPasteIntoNode;
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例2: ReorderNodePred

 private bool ReorderNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.ReorderNodeCapabilities;
     return (dataNode != null) && dataNode.CanReoderNode;
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例3: DeleteNodePred

 private bool DeleteNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.DeleteNodeCapabilities;
     return (dataNode != null) && dataNode.CanDeleteNode;
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例4: EditNodePred

 private bool EditNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.EditNodeCapabilities;
     return (dataNode != null) && dataNode.CanEditNode;
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例5: CreateIntArrayNodePred

 private bool CreateIntArrayNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_INT_ARRAY);
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例6: CreateStringNodePred

 private bool CreateStringNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_STRING);
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例7: CreateDoubleNodePred

 private bool CreateDoubleNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_DOUBLE);
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例8: CreateFloatNodePred

 private bool CreateFloatNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_FLOAT);
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例9: SufficientCapabilities

        private bool SufficientCapabilities(IEnumerable<TreeNode> nodes, GroupCapabilities commonCaps)
        {
            bool commonContainer = CommonContainer(nodes);
            bool commonType = CommonType(nodes);

            bool pass = true;
            if (commonContainer && commonType)
                pass &= ((commonCaps & GroupCapabilities.SiblingSameType) == GroupCapabilities.SiblingSameType);
            else if (commonContainer && !commonType)
                pass &= ((commonCaps & GroupCapabilities.SiblingMixedType) == GroupCapabilities.SiblingMixedType);
            else if (!commonContainer && commonType)
                pass &= ((commonCaps & GroupCapabilities.MultiSameType) == GroupCapabilities.MultiSameType);
            else if (!commonContainer && !commonType)
                pass &= ((commonCaps & GroupCapabilities.MultiMixedType) == GroupCapabilities.MultiMixedType);

            return pass;
        }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:17,代码来源:MainForm.cs

示例10: CreateCompoundNodePred

 private bool CreateCompoundNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_COMPOUND);
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例11: SearchNodePred

 private bool SearchNodePred(DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.SearchNodeCapabilites;
     return (dataNode != null) && dataNode.CanSearchNode;
 }
开发者ID:emps2222,项目名称:NBTExplorer,代码行数:5,代码来源:MainForm.cs

示例12: MoveNodeUpPred

 public static bool MoveNodeUpPred (DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.ReorderNodeCapabilities;
     return (dataNode != null) && dataNode.CanMoveNodeUp;
 }
开发者ID:DMV-Jumbo,项目名称:NBTExplorer,代码行数:5,代码来源:NodeTreeController.cs

示例13: RenameNodePred

 public static bool RenameNodePred (DataNode dataNode, out GroupCapabilities caps)
 {
     caps = dataNode.RenameNodeCapabilities;
     return (dataNode != null) && dataNode.CanRenameNode;
 }
开发者ID:DMV-Jumbo,项目名称:NBTExplorer,代码行数:5,代码来源:NodeTreeController.cs

示例14: CreateListNodePred

 public static bool CreateListNodePred (DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_LIST);
 }
开发者ID:DMV-Jumbo,项目名称:NBTExplorer,代码行数:5,代码来源:NodeTreeController.cs

示例15: CreateByteArrayNodePred

 public static bool CreateByteArrayNodePred (DataNode dataNode, out GroupCapabilities caps)
 {
     caps = GroupCapabilities.Single;
     return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_BYTE_ARRAY);
 }
开发者ID:DMV-Jumbo,项目名称:NBTExplorer,代码行数:5,代码来源:NodeTreeController.cs


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