コード例 #1
0
 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));
         }
     }
 }
コード例 #2
0
 private void Main_Load(object sender, EventArgs e)
 {
     Controller.AttachOnExitEventHandler(this);
     ToastAPI.AttachHandler();
 }