summaryrefslogtreecommitdiff
path: root/src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs
blob: 1b6f16b4c463835a50dcb1ec3e0dbc137f00018f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Windows.Forms;

namespace Cmpp298.Assignment3.Desktop.UI {
	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 InvoicesMainView( ) );
			}
			catch {
				MessageBox.Show( "I'm sorry but an unexpected error has occurred.", "Ooops!", MessageBoxButtons.OK,
				                 MessageBoxIcon.Error );
			}
		}
	}
}