示例#1
0
 protected virtual void OnChatSent(ChatSentEventArgs e)
 {
     if (ChatSent != null)
     {
         ChatSent(this, e);
     }
 }
示例#2
0
        //Used only for non-public chat
        private void ProcessOutgoingChat(ChatSentEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            switch (e.Type)
            {
                case ChatType.Normal:
                    sb.Append(": ");
                    break;

                case ChatType.Whisper:
                    sb.Append(" whisper: ");
                    break;

                case ChatType.Shout:
                    sb.Append(" shout: ");
                    break;
            }

            sb.Append(e.Message);

            ChatBufferItem item = new ChatBufferItem(
                DateTime.Now, string.Format("(channel {0}) {1}", e.Channel, client.Self.Name), client.Self.AgentID, sb.ToString(), ChatBufferTextStyle.StatusDarkBlue);

            ProcessBufferItem(item, true);

            sb = null;
        }
示例#3
0
        private void netcom_ChatSent(object sender, ChatSentEventArgs e)
        {
            if (e.Channel == 0) return;

            ProcessOutgoingChat(e);
        }
示例#4
0
 protected virtual void OnChatSent(ChatSentEventArgs e)
 {
     if (ChatSent != null) ChatSent(this, e);
 }
示例#5
0
 private void netcom_ChatSent(object sender, ChatSentEventArgs e)
 {
     tabs["chat"].Highlight();
 }
 protected virtual void OnChatSent(ChatSentEventArgs e)
 {
     ChatSent?.Invoke(this, e);
 }