Exemple #1
0
 public bool Equals(KeyPressDefinition other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Key, Key) &&
            other.ControlPressed.Equals(ControlPressed) &&
            other.AltPressed.Equals(AltPressed) &&
            other.ShiftPressed.Equals(ShiftPressed) &&
            other.WinkeyPressed.Equals(WinkeyPressed);
 }
 public bool Equals(KeyPressDefinition other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Key, Key) &&
            other.ControlPressed.Equals(ControlPressed) &&
            other.AltPressed.Equals(AltPressed) &&
            other.ShiftPressed.Equals(ShiftPressed) &&
            other.WinkeyPressed.Equals(WinkeyPressed));
 }