-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (34 loc) · 1.09 KB
/
Copy pathProgram.cs
File metadata and controls
37 lines (34 loc) · 1.09 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
/**
This Code is published under the terms and conditions of the CC-BY-NC-ND-4.0
(https://creativecommons.org/licenses/by-nc-nd/4.0)
Please contribute to the current project.
SPDX-License-Identifier: CC-BY-NC-ND-4.0
@author: pdulvp@laposte.net
*/
using Pdulvp.EasyFirewall.Properties;
using System.Globalization;
namespace Pdulvp.EasyFirewall
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
string? customSetting = AppContext.GetData("Culture.CultureInfo") as string;
if (customSetting == null)
{
Console.WriteLine("CultureInfo is not defined");
}
else
{
Resources.Culture = CultureInfo.GetCultureInfo(customSetting);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}
}