暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CheckWorkspaceTreeNodeStatus.cs 854B

1234567891011121314151617181920212223242526272829303132333435
  1. using Codice.Client.Commands.WkTree;
  2. using Codice.CM.Common;
  3. namespace Codice
  4. {
  5. internal static class CheckWorkspaceTreeNodeStatus
  6. {
  7. internal static bool IsPrivate(WorkspaceTreeNode node)
  8. {
  9. return node == null;
  10. }
  11. internal static bool IsCheckedOut(WorkspaceTreeNode node)
  12. {
  13. if (node == null)
  14. return false;
  15. return node.RevInfo.CheckedOut;
  16. }
  17. internal static bool IsAdded(WorkspaceTreeNode node)
  18. {
  19. if (node == null)
  20. return false;
  21. return node.RevInfo.CheckedOut &&
  22. node.RevInfo.ParentId == -1;
  23. }
  24. internal static bool IsDirectory(WorkspaceTreeNode node)
  25. {
  26. return node.RevInfo.Type == EnumRevisionType.enDirectory;
  27. }
  28. }
  29. }