private void StopCapturing() { overlayTracker.StopCapturing(); userInterfaceState.IsCapturingSingle = false; userInterfaceState.IsCapturingGlobal = false; startOverlayGlobalButton.Content = "Start overlay"; startSingleApplicationButton.Content = "Start application"; RegistryUpdater.DisableImplicitLayer(); }
private int PerformRecovery(object parameter) { try { ApplicationRestartRecoveryManager.ApplicationRecoveryInProgress(); RegistryUpdater.DisableImplicitLayer(); ApplicationRestartRecoveryManager.ApplicationRecoveryFinished(true); } catch { ApplicationRestartRecoveryManager.ApplicationRecoveryFinished(false); } return(0); }