private void stopbtn_Click(object sender, EventArgs e) { stopbtn.Enabled = false; stpanel.Enabled = stbtn.Enabled = true; MainServer.Stop(); }