Esempio n. 1
0
        // Send a message
        private void buttonSendPartyMessage_Click(object sender, RoutedEventArgs e)
        {
            listBoxPartyChat.Items.Add($"{player}: {textBoxPartyChat.Text}");
            OnSendMessage?.Invoke(textBoxPartyChat.Text);

            textBoxPartyChat.Text = "";
        }
Esempio n. 2
0
 /// <summary>
 ///     Internal routine to invoke the SendMessageHandler
 /// </summary>
 /// <param name="message">The reply to send</param>
 /// <param name="original">The original twitch message</param>
 public void SendMessage(string message, DigestMessage original)
 {
     if (string.IsNullOrEmpty(message))
     {
         return;
     }
     SendMessageHandler?.Invoke(this, new SendMessageArgs {
         Reply = message, OriginalMessage = original
     });
 }
Esempio n. 3
0
        public void ListClick(object sender, ItemClickEventArgs e)
        {
            var     keySecret = e.ClickedItem as KeySecret;
            Message temp      = new Message()
            {
                Content = keySecret,
                Goal    = nameof(ContentModel),
                Key     = "点击列表",
                Source  = this
            };

            //SendMessage?.SendMessage(temp);
            SendMessageHandler?.Invoke(this, temp);
        }