コード例 #1
0
 private void AcceptButton_Click(object sender, EventArgs e)
 {
     // send the messageSpecs back To server
     messageSpecs.ContactResponseMessage reply = new messageSpecs.ContactResponseMessage();
     reply.Reply = messageSpecs.ContactResponseMessage.ContactResponse.Accept;
     reply.sender = myUID.ToString();
     reply.receiver = friendUID.ToString();
     myClient.Send(reply.getMessageString());
     this.Dispose();
 }
コード例 #2
0
        private void DeclineButton_Click(object sender, EventArgs e)
        {
            // Send the Message to Server.

            messageSpecs.ContactResponseMessage reply = new messageSpecs.ContactResponseMessage();
            reply.sender = myUID.ToString();
            reply.receiver = friendUID.ToString();
            reply.Reply = messageSpecs.ContactResponseMessage.ContactResponse.Decline;
            myClient.Send(reply.getMessageString());

            removeClicked(friendUID, friendName);
            this.Dispose();
        }
コード例 #3
0
 private void button11_Click(object sender, EventArgs e)
 {
     messageSpecs.ContactResponseMessage x = new messageSpecs.ContactResponseMessage();
     x.sender = "10006";
     x.receiver = "10007";
     x.Reply = messageSpecs.ContactResponseMessage.ContactResponse.Accept;
     clientSocket.Send(x.getMessageString());
 }