static void Main() { XmlConfigurator.Configure(new FileInfo("logging.xml")); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Properties.Settings.Default.UpgradeSettings) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.UpgradeSettings = false; } if (String.IsNullOrEmpty(Settings.Default.Language )) Settings.Default.Language = "en-GB"; Application.CurrentCulture = new CultureInfo(Settings.Default.Language); Thread.CurrentThread.CurrentUICulture = Application.CurrentCulture; MainForm form = new MainForm(); Application.Run(form); }