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; } }
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; }