Beispiel #1
0
 /// <summary>
 /// Gets a value indicating whether this action is valid for the specified type of input device.
 /// </summary>
 /// <param name="sourceDeviceKind">The type of device to check.</param>
 /// <returns><see langword="true"/> if the action is valid for the specified type of input device;
 /// otherwise, <see langword="false"/>.</returns>
 public virtual bool IsValidFor(InputDeviceKind sourceDeviceKind)
 {
     return(this.sourceDevice.DeviceKind == sourceDeviceKind);
 }
Beispiel #2
0
 /// <summary>
 /// Gets a value indicating whether this action is valid for the specified type of input device.
 /// </summary>
 /// <param name="sourceDeviceKind">The type of device to check.</param>
 /// <returns><see langword="true"/> if the action is valid for the specified type of input device;
 /// otherwise, <see langword="false"/>.</returns>
 public override bool IsValidFor(InputDeviceKind sourceDeviceKind)
 {
     return(true);
 }