コード例 #1
0
        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));
        }
コード例 #2
0
 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();
 }
コード例 #3
0
 private void btnSendAll_Click(object sender, EventArgs e)
 {
     mServer.SendToAll(txtMessage.Text.Trim());
 }
コード例 #4
0
ファイル: Form1.cs プロジェクト: d3sync/OrderAnnouncer-ESHOP
 private void button3_Click(object sender, EventArgs e)
 {
     mServer.SendToAll(textBox1.Text.Trim());
 }
コード例 #5
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     byte[] imgToSend = ImageToByte(bitmap);
     mServer.SendToAll(imgToSend);
     txtConsole.AppendText(inString);
 }