Exemple #1
0
 private void rBMerahOff_CheckedChanged(object sender, EventArgs e)
 {
     if (rBMerahOff.Checked.Equals(true))
     {
         varGlobal.alamatIPServer = txtIPClient.Text;
         varGlobal.port           = Int16.Parse(txtPortClient.Text);
         SocketTCP.StartClient("Red,Off,");
     }
 }
 private void radioButtonMerahOff_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButtonMerahOff.Checked.Equals(true))
     {
         varGlobal.alamatIPServer = textBoxIPAddress.Text;
         varGlobal.port           = Int16.Parse(textBoxPort.Text);
         SocketTCP.StartClient("Merah,Mati");
     }
 }
Exemple #3
0
 private void rBHijauOff_CheckedChanged(object sender, EventArgs e)
 {
     varGlobal.alamatIPServer = txtIPClient.Text;
     varGlobal.port           = Int16.Parse(txtPortClient.Text);
     SocketTCP.StartClient("Green,Off,");
 }
Exemple #4
0
 private void rBKuningOn_CheckedChanged(object sender, EventArgs e)
 {
     varGlobal.alamatIPServer = txtIPClient.Text;
     varGlobal.port           = Int16.Parse(txtPortClient.Text);
     SocketTCP.StartClient("Yellow,On,");
 }
 private void radioButtonHijauOff_CheckedChanged(object sender, EventArgs e)
 {
     varGlobal.alamatIPServer = textBoxIPAddress.Text;
     varGlobal.port           = Int16.Parse(textBoxPort.Text);
     SocketTCP.StartClient("Hijau,Mati");
 }