-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (32 loc) · 1008 Bytes
/
Program.cs
File metadata and controls
33 lines (32 loc) · 1008 Bytes
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
using System;
using System.Windows.Forms;
namespace DataSplitPro
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
Console.WriteLine("Program started");
Application.EnableVisualStyles();
Console.WriteLine("Visual styles enabled");
Application.SetCompatibleTextRenderingDefault(false);
Console.WriteLine("Text rendering set");
Console.WriteLine("Creating MainForm...");
Application.Run(new MainForm());
Console.WriteLine("Application ended");
}
catch (Exception ex)
{
Console.WriteLine($"Error in Program.Main: {ex.Message}");
Console.WriteLine($"Stack trace: {ex.StackTrace}");
throw;
}
}
}
}