/// <summary> /// Raises the <see cref="E:StatusChange"/> event. /// </summary> /// <param name="RtspStatusEventArgs">The <see cref="Rtsp.RtspStatusEventArgs"/> instance containing the event data.</param> protected void OnStatusChange(RtspStatusEventArgs rtspStatusEventArgs) { EventHandler <RtspStatusEventArgs> handler = StatusChanged; if (handler != null) { handler(this, rtspStatusEventArgs); } }
void Rtsp_Client_StatusChanged(object sender, Rtsp.RtspStatusEventArgs e) { Console.WriteLine("NEW STATUS is " + e.Status.ToString()); CurrentStatus = e.Status; }