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()); }
private void btnDestruct_Click(object sender, EventArgs e) { HostsChange.unload(); btnDisable.PerformClick(); }