main
1using System.Windows.Forms;
2
3namespace MoMoney.Presentation.Winforms.Keyboard
4{
5 public class ShortcutKey
6 {
7 private readonly Keys key;
8
9 public ShortcutKey(Keys key)
10 {
11 this.key = key;
12 }
13
14 public ShortcutKey and(ShortcutKey other_key)
15 {
16 return new ShortcutKey(key | other_key.key);
17 }
18
19 public static implicit operator Keys(ShortcutKey key_to_convert)
20 {
21 return key_to_convert.key;
22 }
23 }
24}