static void Main() { Log.Info("Application started."); // Application configuration. System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); // Main window creation and configuration. MainForm form = new MainForm(); form.Text = Resources.ApplicationTitle; // Browser initialisation. BrowserService.Init(); // Email configuration EmailService.SmtpServer = Properties.Settings.Default.SMTPIp; EmailService.SmtpPort = (int.Parse(Properties.Settings.Default.SMTPPort)); EmailService.SmtpUsername = Properties.Settings.Default.SMTPUsername; EmailService.SmtpPassword = Properties.Settings.Default.SMTPPassword; EmailService.SmtpEmailFrom = Properties.Settings.Default.Email; // Launch the MainForm. System.Windows.Forms.Application.Run(form); // Browser Destruction. BrowserService.Exit(); Log.Info("Application ended."); }