/// <summary> /// Raises the <see cref="InviteReceived"/> event. /// </summary> /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param> protected virtual void OnInviteReceived(IrcChannelInvitationEventArgs e) { var handler = this.InviteReceived; if (handler != null) { handler(this, e); } }
/// <summary> /// Raises the <see cref="InviteReceived" /> event. /// </summary> /// <param name="e">The <see cref="IrcChannelEventArgs" /> instance containing the event data.</param> protected virtual void OnInviteReceived(IrcChannelInvitationEventArgs e) { var handler = InviteReceived; if (handler != null) handler(this, e); }
private void LocalUser_InviteReceived(object sender, IrcChannelInvitationEventArgs e) { AHistory activeChan = ConnectionUtils.GetActiveAHistory(connection); activeChan.AddHistory(HtmlWriter.Write(string.Format(MainPage.GetInfoString("InviteReceived"), e.Inviter.NickName, e.Channel.Name, "/join " + e.Channel.Name))); }
private void User_InviteReceived(object sender, IrcChannelInvitationEventArgs e) { IrcChannelUser chanUser = sender as IrcChannelUser; if (chanUser != null) { foreach (Channel curchan in connection.Channels) { Channel user = curchan.Users.FirstOrDefault(p => p.Name == chanUser.User.NickName); if (user != null) { user.Opacity = ConnectionUtils.OpacityFromStatus(chanUser); } } } }