-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
78 lines (74 loc) · 1.62 KB
/
Program.cs
File metadata and controls
78 lines (74 loc) · 1.62 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using DinoUI;
using System.Diagnostics;
static void Main()
{
ButtonInfo[] button = {new ButtonInfo()
{
Title = "Loading Screen",
OnPress = LoadingScreen
},
new ButtonInfo()
{
Title = "Text Input",
OnPress= Input
},
new ButtonInfo()//ADD TEXT INPUT
{
Title = "View Popups",
OnPress = Popups
},
new ButtonInfo()
{
Title = "View Github",
OnPress= Github
}};
var config = new MainConfig()
{
Title = "Dino UI",
Buttons = button,
ForegroundColor = ConsoleColor.White,
BackgroundColor = ConsoleColor.DarkRed
};
HomeScreen.Run(config).Invoke();
}
Main();
static void LoadingScreen()
{
var lscreen = new LoadingScreen();
for (int i = 0; i <= 100; i++)
{
lscreen.SetProgress(i);
Thread.Sleep(10);
}
Popup.Alert("The task has completed. Go to MultiversusTracker.com and try it out. Also go to brianbaldner.com because that is also fun.");
Main();
}
static void Popups()
{
var r = Popup.Confirm("Are you sure you want to see popups?");
if (r)
Popup.Alert("You said Ok");
else
Popup.Alert("You said Cancel");
/*System.Diagnostics.Process.Start(new ProcessStartInfo
{
FileName = "https://github.com/brianbaldner",
UseShellExecute = true
});*/
Main();
}
static void Input()
{
string name = TextInput.Run("What is your name?");
Popup.Alert("Your name is " + name);
Main();
}
static void Github()
{
System.Diagnostics.Process.Start(new ProcessStartInfo
{
FileName = "https://github.com/brianbaldner",
UseShellExecute = true
});
Main();
}