private void Conncet_Click(object sender, System.EventArgs e) { string MSG2 = ServerChat.Start_Voice_Server(int.Parse(text_Port.Text)); Add_Event(MSG2); Conncet.Enabled = false; DisConncet.Enabled = true; text_Port.Enabled = false; }
private void DisConncet_Click(object sender, System.EventArgs e) { try { string MSG3 = ServerChat.ShutDown(); Add_Event(MSG3); } catch (System.Exception ex) { MessageBox.Show(ex.Message); } DisConncet.Enabled = false; Conncet.Enabled = true; text_Port.Enabled = true; }