示例#1
0
 private void ShowPopup(TwitchIRC.Message message)
 {
     if (message is ChannelMessage)
     {
         ChannelMessage msg = (ChannelMessage)message;
         MessagePopup popup = new MessagePopup(msg.From, msg.Content, 100 * m_Popups.Count);
         popup.Show();
         m_Popups.Add(popup);
         popup.FormClosed += onPopupClosed;
     }
 }
示例#2
0
 private void onTest(object sender, EventArgs e)
 {
     MessagePopup popup = new MessagePopup("testuser", "test content", 100 * m_Popups.Count);
     popup.Show();
     m_Popups.Add(popup);
     popup.FormClosed += onPopupClosed;
 }