static DeviceList() { DeviceList.Current = new DeviceList(); DeviceList.Current.InitDeviceWatcher(); // Register for app suspend/resume handlers App.Current.Suspending += new SuspendingEventHandler(DeviceList.Current.SuspendDeviceWatcher); App.Current.Resuming += DeviceList.Current.ResumeDeviceWatcher; }