-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathProgram.cs
37 lines (31 loc) · 1.06 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
//*************************************************************************************************
//* (C) ColorfulSoft corp., 2021 - 2022. All Rights reserved.
//*************************************************************************************************
using System;
using System.Windows.Forms;
namespace ColorfulSoft.DeOldify
{
/// <summary>
/// Main class.
/// </summary>
public static class Program
{
/// <summary>
/// Entry point.
/// </summary>
[STAThread]
public static void Main(string[] args)
{
// Reduce application CPU priority to avoid freezes during image processing
System.Diagnostics.Process.GetCurrentProcess().PriorityClass =
System.Diagnostics.ProcessPriorityClass.BelowNormal;
DeOldify.Initialize();
if(args.Length > 0)
{
return;
}
Application.EnableVisualStyles();
Application.Run(new MainForm());
}
}
}