[887b2f]: Program.cs Maximize Restore History

Download this file

Program.cs    42 lines (37 with data), 1.1 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
38
39
40
41
using System;
using System.Windows.Forms;
namespace btprox
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(String[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var mainForm = new BtProxLock();
try
{
mainForm.Initialize(args);
}
catch (Exception e)
{
MessageBox.Show(@"Ooops.", string.Format(
"Looks like you've found a bug. Technical info: {0}: {1}{2}{3}",
e.GetType(), e.Message, Environment.NewLine, e.StackTrace));
return;
}
if (mainForm.IsHidden)
{
Application.Run();
}
else
{
Application.Run(mainForm);
}
}
}
}