forked from Filtik/EliteDangerousLCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EDLCD.cs
36 lines (28 loc) · 795 Bytes
/
EDLCD.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using EliteDangerousLCD.Elite;
using EliteDangerousLCD.LCD.Tabs;
using EliteDangerousLCD.Objects;
using EliteDangerousLCD.Objects.Enum;
using LogiFrame;
namespace EliteDangerousLCD
{
public delegate void NoArgumentsEventHandler();
public class EDLCD
{
public static LCDApp LCDApp = new LCDApp("Elite Dangerous LCD", true, false, false);
public static Instance Instance = new Instance();
public static bool ButtonsEnabled = false;
public static void Main()
{
TabLCDStartup.Create();
EliteInit.Start();
StatusChecker.StartChecker();
LCDApp.ButtonDown += LCDApp_ButtonDown;
LCDApp.WaitForClose();
}
private static void LCDApp_ButtonDown(object sender, ButtonEventArgs e)
{
if (!ButtonsEnabled) return;
Instance.Tab.Set((LCDTab)e.Button);
}
}
}