private void ExplorerStarted() { Logger.AddWarning("Windows explorer has been restarted!", this); var success = SEBProcessHandler.KillExplorerShell(); if (success) { Logger.AddInformation("Successfully terminated Windows explorer.", this); } else { Logger.AddError("Failed to terminate Windows explorer!", this, null); } }
private void ExplorerStarted(object sender, EventArgs e) { Logger.AddWarning("Windows Explorer has been restarted!", this); var success = SEBProcessHandler.KillExplorerShell(); if (success) { SEBClientInfo.SebWindowsClientForm?.Invoke(new Action(() => SEBClientInfo.SebWindowsClientForm?.PlaceFormOnDesktop(false))); Logger.AddInformation("Successfully terminated Windows Explorer.", this); } else { Logger.AddError("Failed to terminate Windows Explorer!", this, null); } }