protected virtual void OnDeviceArrived(DeviceArrivedEventArgs e) { EventHandler <DeviceArrivedEventArgs> handler = DeviceArrived; if (handler != null) { handler(this, e); } }
void broadcastReceiver_DeviceArrived(object sender, DeviceArrivedEventArgs e) { CheckDevice(e.DeviceID); }