예제 #1
0
        /// <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)));
            }
        }
예제 #2
0
파일: IRCClient.cs 프로젝트: iseebi/EbIRC
 /// <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);
         }
     }
 }