private void pmReceived(object sender, PrivateMsgEventArgs e) { m_dispatcher.Invoke(new PmReceivedDelegate(ShowPmReceiveWindow), e.SendingNick, e.SendingUserId, e.Message); }
public void HandlePmReceived(object sender, PrivateMsgEventArgs e) { if (e == null) return; // Raise the event. OnPmReceived(e); // Play the private message received sound. m_soundController.PlaySound(SoundEffect.PmReceived); }
protected virtual void OnPmReceived(PrivateMsgEventArgs e) { if (PmReceived != null) PmReceived(this, e); }
private void Event_PmReceived(object sender, PrivateMsgEventArgs e) { m_screen.WriteLine("Private Message: ({0}) {1}", e.SendingNick, e.Message.Trim()); }