Beispiel #1
0
        private void button_shutdown_Click(object sender, EventArgs e)
        {
            if (VoicecheckBox.Checked)
            {
                VoiceServer = new SocketCoderVoiceServer();
                string VoiceSTMSG = VoiceServer.ShutDown() + " The Voice Service" + GetTime();
                Add_Event(VoiceSTMSG);
            }
            if (VideocheckBox.Checked)
            {
                VideoServer = new SocketCoderVideoServer();
                string VideoSTMSG = VideoServer.ShutDown() + " The Video Service" + GetTime();
                Add_Event(VideoSTMSG);
            }
            if (DesktopcheckBox.Checked)
            {
                DesktopServer = new SocketCoderDesktopServer();
                string DesktopSTMSG = DesktopServer.ShutDown() + " The Desktop Service" + GetTime();
                Add_Event(DesktopSTMSG);
            }

            Conncet.Enabled = true;
            button_shutdown.Enabled = false;
            ServicesPanel.Enabled = true;
        }
Beispiel #2
0
        private void Conncet_Click(object sender, EventArgs e)
        {
            EventslistBox.Items.Clear();

            if (VoicecheckBox.Checked)
            {
                VoiceServer = new SocketCoderVoiceServer();
                string VoiceSTMSG = VoiceServer.Start_A_Server_On(4530) + " For Voice Service" + GetTime();
                Add_Event(VoiceSTMSG);
            }
            if (VideocheckBox.Checked)
            {
                VideoServer = new SocketCoderVideoServer();
                string VideoSTMSG = VideoServer.Start_A_Server_On(4531) + " For Video Service" + GetTime();
                Add_Event(VideoSTMSG);
            }
            if (DesktopcheckBox.Checked)
            {
                DesktopServer = new SocketCoderDesktopServer();
                string DesktopSTMSG = DesktopServer.Start_A_Server_On(4532) + " For Desktop Service" + GetTime();
                Add_Event(DesktopSTMSG);
            }

            ServicesPanel.Enabled = false;
            Conncet.Enabled = false;
            button_shutdown.Enabled = true;
        }