typo
[deb_libcec.git] / src / cec-config-gui / CecButtonConfig.cs
CommitLineData
a42ad439 1using System.Collections.Generic;
8674df6a
LOK
2
3namespace 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}