Beispiel #1
0
 private void BroadcastSendButton_Click()
 {
     if (!string.IsNullOrEmpty(BroadcastTextBox.Text))
     {
         this.client.BroadCast(BroadcastTextBox.Text);
         BroadcastTextBox.Clear();
     }
 }
Beispiel #2
0
        private void BroadcastBtn_Click(object sender, EventArgs e)
        {
            //Send message to server for broadcasting

            string broadcastmessage = BroadcastTextBox.Text;

            this.serverConnection.SendWithNoResponse($"Doctor/Broadcast\r\n{broadcastmessage}");

            //Clears textbox
            BroadcastTextBox.Clear();
            BroadcastTextBox.Text      = "Typ het uitzendbericht:";
            BroadcastTextBox.ForeColor = Color.Gray;
            BroadcastTextBox.Font      = new Font(BroadcastTextBox.Font, FontStyle.Italic);
        }