コード例 #1
0
        private void buttonSend_Click(object sender, EventArgs e)
        {
            varGlobal.alamatIPServer = textBoxIPAddress.Text;
            varGlobal.port           = Int16.Parse(textBoxPort.Text);
            StringBuilder color = new StringBuilder();

            color.Append(textBoxRedCode.Text)
            .Append(",")
            .Append(textBoxGreenCode.Text)
            .Append(",")
            .Append(textBoxBlueCode.Text);
            SocketTCP.StartClient(color.ToString());
        }
コード例 #2
0
        private void btnKirim_Click(object sender, EventArgs e)
        {
            varGlobal.alamatIPServer = txtIPClient.Text;
            varGlobal.port           = Int16.Parse(txtPortClient.Text);
            StringBuilder color = new StringBuilder();

            color.Append(txtRedNumber.Text)
            .Append(",")
            .Append(txtGreenNumber.Text)
            .Append(",")
            .Append(txtBlueNumber.Text)
            .Append(",");
            SocketTCP.StartClient(color.ToString());
        }