本文整理汇总了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;
}
示例2: ReorderNodePred
private bool ReorderNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.ReorderNodeCapabilities;
return (dataNode != null) && dataNode.CanReoderNode;
}
示例3: DeleteNodePred
private bool DeleteNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.DeleteNodeCapabilities;
return (dataNode != null) && dataNode.CanDeleteNode;
}
示例4: EditNodePred
private bool EditNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.EditNodeCapabilities;
return (dataNode != null) && dataNode.CanEditNode;
}
示例5: CreateIntArrayNodePred
private bool CreateIntArrayNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_INT_ARRAY);
}
示例6: CreateStringNodePred
private bool CreateStringNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_STRING);
}
示例7: CreateDoubleNodePred
private bool CreateDoubleNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_DOUBLE);
}
示例8: CreateFloatNodePred
private bool CreateFloatNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_FLOAT);
}
示例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;
}
示例10: CreateCompoundNodePred
private bool CreateCompoundNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_COMPOUND);
}
示例11: SearchNodePred
private bool SearchNodePred(DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.SearchNodeCapabilites;
return (dataNode != null) && dataNode.CanSearchNode;
}
示例12: MoveNodeUpPred
public static bool MoveNodeUpPred (DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.ReorderNodeCapabilities;
return (dataNode != null) && dataNode.CanMoveNodeUp;
}
示例13: RenameNodePred
public static bool RenameNodePred (DataNode dataNode, out GroupCapabilities caps)
{
caps = dataNode.RenameNodeCapabilities;
return (dataNode != null) && dataNode.CanRenameNode;
}
示例14: CreateListNodePred
public static bool CreateListNodePred (DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_LIST);
}
示例15: CreateByteArrayNodePred
public static bool CreateByteArrayNodePred (DataNode dataNode, out GroupCapabilities caps)
{
caps = GroupCapabilities.Single;
return (dataNode != null) && dataNode.CanCreateTag(TagType.TAG_BYTE_ARRAY);
}