private void btnSendToAll_Click(object sender, RoutedEventArgs e) { SocketDataTransfer socketDataTransfer = new SocketDataTransfer(Globals.server_name, "new_message", txtMessage.Text.Trim()); mServer.SendToAll(socketDataTransfer); txtConsole.AppendText(string.Format("<<{0}>> - Message from ({1}): {2}{3}", DateTime.Now, Globals.server_name, txtMessage.Text.Trim(), Environment.NewLine)); }
private void btnSenAll_Click(object sender, EventArgs e) { mServer.SendToAll(textMessage.Text.Trim()); txtConsole.AppendText(string.Format("Sent to clients: {0}", textMessage.Text.ToString())); txtConsole.AppendText(Environment.NewLine); textMessage.Clear(); textMessage.Focus(); }
private void btnSendAll_Click(object sender, EventArgs e) { mServer.SendToAll(txtMessage.Text.Trim()); }
private void button3_Click(object sender, EventArgs e) { mServer.SendToAll(textBox1.Text.Trim()); }
private void timer1_Tick(object sender, EventArgs e) { byte[] imgToSend = ImageToByte(bitmap); mServer.SendToAll(imgToSend); txtConsole.AppendText(inString); }