private void CallEvent(EventHandler <CallEventArgs> evnt, CallEventArgs e) { EventHandler <CallEventArgs> handler = evnt; if (handler != null) { handler(this, e); } }
private void CallEvent(EventHandler<CallEventArgs> evnt, CallEventArgs e) { EventHandler<CallEventArgs> handler = evnt; if (handler != null) { handler(this, e); } }
public void OnIncomingCall(object sender, CallEventArgs e) { SendMessage(new Message(String.Format("{0} calling you on Skype. Type /answer to respond.", e.from), EndPoint.Skype, EndPoint.SteamAdmin)); }