/// <summary> /// ���[�h�ύX /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ircClient_ModeChange(object sender, ModeChangeEventArgs e) { // �`�����l�����Ȃ���Δ����� if (!m_channel.ContainsKey(e.Channel)) return; // ���O��o�͂��� if (e.Sender != string.Empty) { AddLog(m_channel[e.Channel], string.Format(Resources.ModeChanged, IRCClient.GetUserName(e.Sender), e.Mode, string.Join(",", e.Target))); } else { AddLog(m_channel[e.Channel], string.Format(Resources.ModeReceived, e.Mode, string.Join(",", e.Target))); } }
/// <summary> /// ModeChange イベントを発生させます。 /// </summary> protected void OnModeChange(ModeChangeEventArgs e) { ModeChangeEventHandler handler = (ModeChangeEventHandler)Events[eventKeyOfModeChange]; if (handler != null) { Control owner = GetOwner(); if ((owner != null) && owner.InvokeRequired) { owner.Invoke(handler, this, e); } else { handler(this, e); } } }