-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
52 lines (39 loc) · 1.06 KB
/
Program.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using CalendarTUI.TerminalGraphics;
namespace CalendarTUI;
public class Program
{
static void Main(string[] args)
{
System.Globalization.CultureInfo.CurrentCulture.ClearCachedData();
// initialize Graphics
GraphicsManager.InitializeGraphics();
// initialize calendar
Calendar.Initialize("events.json");
// clear screen before starting drawing
Console.Clear();
// game loop
while (true)
{
// check if window has been updated
GraphicsManager.Update();
// check user input update
Calendar.Update();
// draw modules
Calendar.Draw();
}
}
}
//? inprogress:
// ! issues:
// todo:
// todo: add "next event in:" in current event
// todo: check calculations (some of them are really long at this point)
// todo: make drawing more efficient (move every calculation to update)
// todo: remove magic numbers (add const numbers)
// todo: update comments
// todo: add settings.json
// todo: vim-mode
// todo: add tasks
// todo: add exclude days to events
// todo: full day events (above calendar displayed in list)
// todo: national holidays