private void Application_Activated(object sender, ActivatedEventArgs e) { LampDevice = new LampDevice(); }
private void Application_Launching(object sender, LaunchingEventArgs e) { LampDevice = new LampDevice(); }
private void RootFrame_Unobscured(object sender, EventArgs e) { if (Settings.DisableApplicationIdleDetection && LampDevice.IsDisposed) { LampDevice = new LampDevice(); } }