/// <summary>
 /// Method to fire the status change event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="data"></param>
 protected void OnStatusChange(object sender, StatusChangeEventArgs data)
 {
     //Check if event has been subscribed to
     if (StatusChange != null)
     {
         //call the event
         StatusChange(this, data);
     }
 }
 /// <summary>
 /// Fires when the status of the monitor changes
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="data"></param>
 void pms_PlexStatusChange(object sender, StatusChangeEventArgs data)
 {
     WriteToLog(data.Description);
 }
Esempio n. 3
0
 void aux_StatusChange(object sender, StatusChangeEventArgs data)
 {
     //bubble up the state change
     OnPlexStatusChange(sender, data);
 }