Menu

[r25]: / trunk / GoogleContactsSync / Program.cs  Maximize  Restore  History

Download this file

40 lines (36 with data), 1.3 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
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace WebGear.GoogleContactsSync
{
static class Program
{
private static SettingsForm instance;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
instance = new SettingsForm();
Application.Run(instance);
}
internal static SettingsForm Instance
{
get { return instance; }
}
/// <summary>
/// Fallback. If there is some try/catch missing we will handle it here, just before the application quits unhandled
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
if (e.ExceptionObject is Exception)
ErrorHandler.Handle((Exception)e.ExceptionObject);
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.