internal void RaiseOnDeviceStatusChange(object sender, _WMPOCXEvents_DeviceStatusChangeEvent e) { if ((this.DeviceStatusChange != null)) { this.DeviceStatusChange(sender, e); } }
public virtual void DeviceStatusChange(WMPLib.IWMPSyncDevice pDevice, WMPLib.WMPDeviceStatus newStatus) { _WMPOCXEvents_DeviceStatusChangeEvent devicestatuschangeEvent = new _WMPOCXEvents_DeviceStatusChangeEvent(pDevice, newStatus); this.parent.RaiseOnDeviceStatusChange(this.parent, devicestatuschangeEvent); }