-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Program.cs
50 lines (41 loc) · 1.29 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
45
46
47
48
49
50
#region Copyright
///////////////////////////////////////////////////////////////////////////////
// File: Program.cs
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) KGy SOFT, 2005-2024 - All Rights Reserved
//
// You should have received a copy of the LICENSE file at the top-level
// directory of this distribution.
//
// Please refer to the LICENSE file if you want to use this source code.
///////////////////////////////////////////////////////////////////////////////
#endregion
#region Usings
using System;
using System.Windows.Forms;
using KGySoft.Drawing.Examples.WinForms.View;
using KGySoft.Drawing.Examples.WinForms.ViewModel;
#endregion
namespace KGySoft.Drawing.Examples.WinForms
{
internal static class Program
{
#region Methods
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
#if NETFRAMEWORK
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
#else
ApplicationConfiguration.Initialize();
#endif
using var viewModel = new MainViewModel();
Application.Run(new MainForm(viewModel));
}
#endregion
}
}