static void Main(string[] args) { //Allow only one instance of NetStalker to be running at a time using (Mutex AppMutex = new Mutex(true, "NetStalker", out bool createdNew)) { if (createdNew) { ToastAPI.AttachHandler(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main(args)); } } }
private void Main_Load(object sender, EventArgs e) { Controller.AttachOnExitEventHandler(this); ToastAPI.AttachHandler(); }