forked from Haydend/ConsoleDraw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
46 lines (37 loc) · 1.2 KB
/
Copy pathProgram.cs
File metadata and controls
46 lines (37 loc) · 1.2 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
using ConsoleDraw;
using ConsoleDraw.Windows;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InlineTestApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Test App");
Console.WriteLine();
Console.WriteLine();
for (var i = 0; i < 2; i++ )
Console.WriteLine(i.ToString());
Console.WriteLine("Loading Alert Message");
Console.ReadLine();
WindowManager.SetupWindow();
new Alert("This is an alert!", null);
WindowManager.EndWindow();
Console.WriteLine("That was the Alert");
Console.WriteLine("Loading Confirm Message");
Console.ReadLine();
WindowManager.SetupWindow();
var confirm = new Confirm(null, "Are you wish to run this program?");
WindowManager.EndWindow();
if (confirm.Result == DialogResult.OK)
Console.WriteLine("You pressed OK");
else
Console.WriteLine("You pressed Cancel");
Console.ReadLine();
}
}
}