-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
44 lines (37 loc) · 1.14 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
using System;
using System.Text;
using NuciCLI.Menus;
using UniversalNameGenerator.Menus;
namespace UniversalNameGenerator
{
/// <summary>
/// Main class.
/// </summary>
public static class MainClass
{
static string applicationDirectory;
/// <summary>
/// Gets the application directory.
/// </summary>
/// <value>The application directory.</value>
public static string ApplicationDirectory
{
get
{
if (string.IsNullOrEmpty(applicationDirectory))
applicationDirectory = AppDomain.CurrentDomain.BaseDirectory;
return applicationDirectory;
}
}
/// <summary>
/// The entry point of the program, where the program control starts and ends.
/// </summary>
/// <param name="args">The command-line arguments.</param>
public static void Main(string[] args)
{
Console.OutputEncoding = Encoding.UTF8;
MenuManager.Instance.AreStatisticsEnabled = true;
MenuManager.Instance.Start<MainMenu>();
}
}
}