using System; using System.Collections.Generic; using System.Windows.Forms; using System.Diagnostics; using SharpImage.Main; namespace SharpImage { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new siFormMain()); } catch (Exception ex) { Trace.WriteLine(ex); string caption = "Unexpected error occured"; string text = "An unexpected error occured.\r\n\r\n" + ex.ToString(); MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }