protected virtual void OnAvailabilityChanged(AvailabilityEventArgs e) { EventHandler <AvailabilityEventArgs> handler = AvailabilityChanged; if (handler != null) { handler(this, e); } }
void sendAvailability(object sender, AvailabilityEventArgs e) { try { protocol.Send(e.Availability.AvailabilityName); } catch (Exception ex) { OnLog(new MessageEventArgs("Exception while trying to send command. " + ex.ToString())); } }
void lyncx_AvailabilityChanged(object sender, AvailabilityEventArgs e) { sendAvailability(sender, e); }
protected virtual void OnAvailabilityChanged(AvailabilityEventArgs e) { EventHandler<AvailabilityEventArgs> handler = AvailabilityChanged; if (handler != null) { handler(this, e); } }