forked from jasonpang/RemoteDesktop
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (31 loc) · 949 Bytes
/
Copy pathProgram.cs
File metadata and controls
32 lines (31 loc) · 949 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
using System;
using System.Windows.Forms;
using Client.Forms;
using Network;
using Network.Messages;
namespace Client
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormConnect());
Application.Run(new FormLiveControl());
}
catch (Exception ex)
{
MessageBox.Show(
"Something bad happened, and this is the final try { } catch { } block to catch it: \n\n" + ex.ToString(),
"Fatal Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}