public override int OnPublicationEvent(PublicationEvent e) { short code = e.getCode(); tsip_publish_event_type_t type = e.getType(); String text; PublicationSession session = e.getSession(); switch (type) { default: break; } text = String.Format("OnPublicationChanged() ==> {0}:{1}", code, e.getPhrase()); if (this.form.InvokeRequired) { this.form.Invoke(this.form.mydel, new object[] { text }); } return(0); }
/// <summary> /// Publication events /// </summary> /// <param name="e"></param> /// <returns></returns> public override int OnPublicationEvent(PublicationEvent e) { return(0); }
public override int OnPublicationEvent(PublicationEvent e) { short code = e.getCode(); tsip_publish_event_type_t type = e.getType(); String text; PublicationSession session = e.getSession(); switch (type){ default: break; } text = String.Format("OnPublicationChanged() ==> {0}:{1}", code, e.getPhrase()); if (this.form.InvokeRequired) { this.form.Invoke(this.form.mydel, new object[] { text }); } return 0; }
public void Display(PublicationEvent publicationEvent) { Service.text = publicationEvent.GetService(); StartTime.text = publicationEvent.GetStartTime().ToString(CultureInfo.InvariantCulture); Duration.text = publicationEvent.GetDuration(); }