/// <summary> /// Event handler for outgoing IMs /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Netcom_InstantMessageSent(object sender, Radegast.InstantMessageSentEventArgs e) { // Message to an individual IMSession sess = (IMSession)control.converse.GetConversation(control.instance.Names.Get(e.TargetID, true)); sess?.OnMessage(Client.Self.AgentID, Client.Self.Name, e.Message); }
private void netcom_InstantMessageSent(object sender, InstantMessageSentEventArgs e) { if (e.SessionID != SessionID) { return; } textBuffer.Add(e); ProcessIM(e, true); }
private void ProcessOutgoingIM(InstantMessageSentEventArgs e, bool isNewMessage) { PrintIM(e.Timestamp, netcom.LoginOptions.FullName, instance.Client.Self.AgentID, e.Message, isNewMessage); }
protected virtual void OnInstantMessageSent(InstantMessageSentEventArgs e) { InstantMessageSent?.Invoke(this, e); }