Example #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (!File.Exists("driverlock"))
     {
         MangoManger.installMangoDriver();
         Process process = Process.GetCurrentProcess();
         process.Close();
         Application.Restart();
     }
     else
     {
         Application.Run(new MainForm());
     }
 }
Example #2
0
 private void 安装Mango驱动ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MangoManger.installMangoDriver(true);
 }