WingMan – Diff between revs 7 and 10

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 7 Rev 10
Line 2... Line 2...
2 using System.Collections.Generic; 2 using System.Collections.Generic;
3 using System.Linq; 3 using System.Linq;
Line 4... Line 4...
4   4  
5 namespace WingMan.MouseKey 5 namespace WingMan.MouseKey
6 { 6 {
7 public class MouseKeyBinding : IEquatable<MouseKeyBinding> 7 public class KeyBinding : IEquatable<KeyBinding>
8 { 8 {
9 public MouseKeyBinding() 9 public KeyBinding()
10 { 10 {
Line 11... Line 11...
11 } 11 }
12   12  
13 public MouseKeyBinding(string name, List<string> keys) : this() 13 public KeyBinding(string name, List<string> keys) : this()
14 { 14 {
15 Name = name; 15 Name = name;
Line 20... Line 20...
20   20  
Line 21... Line 21...
21 public string Name { get; set; } = string.Empty; 21 public string Name { get; set; } = string.Empty;
Line 22... Line 22...
22   22  
23 public List<string> Keys { get; set; } = new List<string>(); 23 public List<string> Keys { get; set; } = new List<string>();
24   24  
25 public bool Equals(MouseKeyBinding other) 25 public bool Equals(KeyBinding other)
26 { 26 {
27 if (ReferenceEquals(null, other)) return false; 27 if (ReferenceEquals(null, other)) return false;
Line 32... Line 32...
32 public override bool Equals(object obj) 32 public override bool Equals(object obj)
33 { 33 {
34 if (ReferenceEquals(null, obj)) return false; 34 if (ReferenceEquals(null, obj)) return false;
35 if (ReferenceEquals(this, obj)) return true; 35 if (ReferenceEquals(this, obj)) return true;
36 if (obj.GetType() != GetType()) return false; 36 if (obj.GetType() != GetType()) return false;
37 return Equals((MouseKeyBinding) obj); 37 return Equals((KeyBinding) obj);
38 } 38 }
Line 39... Line 39...
39   39  
40 public override int GetHashCode() 40 public override int GetHashCode()
41 { 41 {