示例#1
0
        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;
        }
示例#2
0
 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;
 }