示例#1
0
 public void materialFlatButton2_Click(object sender, EventArgs e)
 {
     lblStatus.Text      = "Status: ENABLED";
     lblStatus.ForeColor = Color.Green;
     if (rbServerLocal.Checked)
     {
         HostsChange.load("127.0.0.1");
     }
     else
     {
         HostsChange.load(tbServerIP.Text);
         return;
     }
     HttpServer.running = true;
     Task.Run(() => HttpServer.start());
 }
示例#2
0
 private void btnDestruct_Click(object sender, EventArgs e)
 {
     HostsChange.unload();
     btnDisable.PerformClick();
 }