示例#1
0
 static void Main()
 {
     if (!SingleInstance.Start()) { return; }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     try
     {
         var applicationContext = new WifiApplicationContext();
         Application.Run(applicationContext);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Wifi Profiles Terminated Unexpectedly",
             MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     SingleInstance.Stop();
 }
示例#2
0
 static void Main()
 {
     if (!SingleInstance.Start())
     {
         return;
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     try
     {
         var applicationContext = new WifiApplicationContext();
         Application.Run(applicationContext);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Wifi Profiles Terminated Unexpectedly",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     SingleInstance.Stop();
 }