Пример #1
0
        private void ChatMessageEvent(EventHandler <ChatMessageEventArgs> evnt, ChatMessageEventArgs e)
        {
            EventHandler <ChatMessageEventArgs> handler = evnt;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 private void ChatMessageEvent(EventHandler<ChatMessageEventArgs> evnt, ChatMessageEventArgs e)
 {
     EventHandler<ChatMessageEventArgs> handler = evnt;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Пример #3
0
 public void OnMessageReceived(object sender, ChatMessageEventArgs e)
 {
     SendMessage(new Message(String.Format("{0} ({1}{2})", e.Text, e.From,settings.skypeChatAlias), EndPoint.Skype, EndPoint.SteamAdmin));
 }
Пример #4
0
 private void OnGroupMessageReceived(object sender, ChatMessageEventArgs e)
 {
     if( !settings.skypeSkipGroupMessages )
         SendMessage(new Message(String.Format("{2} ({1}@{0})", e.GroupName, e.From, e.Text), EndPoint.SkypeGroup, EndPoint.SteamAdmin));
 }
Пример #5
0
 public void OnMessageReceived(object sender, ChatMessageEventArgs e)
 {
     SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.Skype, EndPoint.SteamAdmin) { FromName = e.From });
 }
Пример #6
0
 private void OnGroupMessageReceived(object sender, ChatMessageEventArgs e)
 {
     if( !settings.skypeSkipGroupMessages )
         SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.SkypeGroup, EndPoint.SteamAdmin) { FromName = e.From, FromGroupName = e.GroupName });
 }