using System; using System.Net; using System.Windows.Forms; namespace Tanshu.Accounts.PointOfSale { static class Program { [STAThread] static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } catch (WebException ex) { MessageBox.Show("Error: " + ex.Message + "\nPlease make sure that the server is on and connected"); } finally { Application.Exit(); } } } }