Browse Source

enable visual styles before alert()

tags/2.3
clowwindy 9 years ago
parent
commit
ca0774ddb3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      shadowsocks-csharp/Program.cs

+ 3
- 2
shadowsocks-csharp/Program.cs View File

@@ -21,6 +21,9 @@ namespace Shadowsocks
{ {
using (Mutex mutex = new Mutex(false, "Global\\" + "71981632-A427-497F-AB91-241CD227EC1F")) using (Mutex mutex = new Mutex(false, "Global\\" + "71981632-A427-497F-AB91-241CD227EC1F"))
{ {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (!mutex.WaitOne(0, false)) if (!mutex.WaitOne(0, false))
{ {
Process[] oldProcesses = Process.GetProcessesByName("Shadowsocks"); Process[] oldProcesses = Process.GetProcessesByName("Shadowsocks");
@@ -35,8 +38,6 @@ namespace Shadowsocks
#if !DEBUG #if !DEBUG
Logging.OpenLogFile(); Logging.OpenLogFile();
#endif #endif
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ShadowsocksController controller = new ShadowsocksController(); ShadowsocksController controller = new ShadowsocksController();
MenuViewController viewController = new MenuViewController(controller); MenuViewController viewController = new MenuViewController(controller);


Loading…
Cancel
Save