summaryrefslogtreecommitdiff
path: root/src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs')
-rw-r--r--src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs b/src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs
new file mode 100644
index 0000000..1b6f16b
--- /dev/null
+++ b/src/app/Cmpp298.Assignment3.Desktop.UI/Program.cs
@@ -0,0 +1,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 );
+ }
+ }
+ }
+} \ No newline at end of file