typo
[deb_libcec.git] / src / cec-config-gui / CecButtonConfig.cs
1 using System.Collections.Generic;
2
3 namespace CecConfigGui
4 {
5 class CecButtonConfigItem
6 {
7 public CecButtonConfigItem(string name, CecSharp.CecKeypress key, string playerButton)
8 {
9 CecButtonName = name;
10 Key = key;
11 PlayerButton = playerButton;
12 _enabled = false;
13 }
14
15 public string PlayerButton { get; set; }
16 private bool _enabled;
17
18 public bool Enabled
19 {
20 get
21 {
22 return _enabled || PlayerButton.Length > 0;
23 }
24 set
25 {
26 _enabled = value;
27 }
28 }
29 public string CecButtonName { get; private set; }
30 public CecSharp.CecKeypress Key { get; private set; }
31 }
32
33 class CecButtonConfig : List<CecButtonConfigItem>
34 {
35 }
36 }