Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrWhiteSpace(txtMessage.Text))
     {
         return;
     }
     _rabbitClient.SendMessage(txtMessage.Text);
     txtSentMessages.Text += Environment.NewLine + txtMessage.Text;
     txtMessage.Text       = string.Empty;
 }