Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != string.Empty)
     {
         form.SendData("PrivateFromTo|" + from + "|" + to + "|" + textBox1.Text);
         richTextBox1.Text += from + " : " + textBox1.Text + "\r\n";
         textBox1.Text      = string.Empty;
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtBox.Text != string.Empty)
     {
         form.SendData("GroupChat|" + name + "|" + from + " : " + txtBox.Text);
         gchatBox.Text += from + " : " + txtBox.Text + "\r\n";
         txtBox.Text    = string.Empty;
     }
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != string.Empty)
            {
                pChat.SendData("pMessage|" + from + "|" + textBox1.Text);

                richTextBox1.Text += from + " : " + textBox1.Text + "\r\n";
                textBox1.Text      = string.Empty;
            }
        }