2 using System.Collections.Generic;
3 using System.Windows.Forms;
4 using System.Diagnostics;
6 namespace Sample_Environment_Control_Interface
16 Application.EnableVisualStyles();
17 Application.SetCompatibleTextRenderingDefault(
false);
20 Process ThisProcess = Process.GetCurrentProcess();
21 Process[] AllProcesses = Process.GetProcessesByName(ThisProcess.ProcessName);
22 if (AllProcesses.Length == 1)
31 Properties.Settings.Default.Crashed =
true;
32 Properties.Settings.Default.Save();
33 MessageBox.Show(
"SECI has had to close. We apologise for the inconvenience.",
"Fatal Error", MessageBoxButtons.OK);
34 Seci.SeciInterface.Error_LogError(
"Fatal Error", e.Exception);
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
static void Main()
The main entry point for the application.