Example #1
0
        //---------------------------------------------------------------------

        public static bool CanList(PermissionItem v)
        {
            return(Bitset8.GetBit(v.Permission, 0));
        }
Example #2
0
 public static bool CanRead(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 1));
 }
Example #3
0
 public static bool CanDelete(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 3));
 }
Example #4
0
 public static bool CanManage(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 4));
 }
Example #5
0
 public static bool CanRead(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 1));
 }
Example #6
0
 public static bool CanWrite(PermissionType v)
 {
     return(Bitset8.GetBit((byte)v, 2));
 }
Example #7
0
 public static bool CanManage(byte v)
 {
     return(Bitset8.GetBit(v, 4));
 }
Example #8
0
        //---------------------------------------------------------------------

        public static bool CanList(PermissionType v)
        {
            return(Bitset8.GetBit((byte)v, 0));
        }
Example #9
0
 public static bool CanWrite(byte v)
 {
     return(Bitset8.GetBit(v, 2));
 }
Example #10
0
 public static bool CanDelete(byte v)
 {
     return(Bitset8.GetBit(v, 3));
 }
Example #11
0
 public static bool CanRead(byte v)
 {
     return(Bitset8.GetBit(v, 1));
 }
Example #12
0
        //---------------------------------------------------------------------

        public static bool CanList(byte v)
        {
            return(Bitset8.GetBit(v, 0));
        }
Example #13
0
 public static bool CanManage(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 4));
 }
Example #14
0
 public static bool CanDelete(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 3));
 }
Example #15
0
 public static bool CanWrite(PermissionItem v)
 {
     return(Bitset8.GetBit(v.Permission, 2));
 }