Ejemplo n.º 1
0
 public bool IsCapable(CapabilityOptions capability)
 {
     ushort num = (ushort) capability;
     return ((this.Capabilities & num) != 0);
 }
Ejemplo n.º 2
0
 public bool IsEnabled(CapabilityOptions capability)
 {
     ushort num = (ushort) capability;
     return ((this.Enabled & num) != 0);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Checks whether the specified function has been enabled on the system
 /// </summary>
 /// <param name="capability">
 /// The capability being checked
 /// </param>
 /// <returns>
 /// Whether or not the specified function is enabled
 /// </returns>
 public bool IsEnabled(CapabilityOptions capability)
 {
     ushort mask = (ushort)capability;
     if ((Enabled & mask) != 0)
     {
         return true;
     }
     else
     {
         return false;
     }
 }