private async void restartNoChangesToolStripMenuItem_Click(object sender, EventArgs e) { // Handles simulation of a restart in the Desktop form by hiding the form for a few frames, updating, and then making it visible again BootOptions.enableSafeMode = false; BootOptions.enableNetworking = true; BootOptions.enableCommandPrompt = true; this.Opacity = 0; await Task.Delay(300); desktopBootOptions(); this.Opacity = 100; RestartBootOptions.Close(); BackgroundRefresh(); }
private async void safeModeToolStripMenuItem_Click(object sender, EventArgs e) { // Handles simulation of a restart (Safe Mode) in the Desktop form by hiding the form for a few frames, updating, and then making it visible again BootOptions.enableSafeMode = true; BootOptions.enableNetworking = false; BootOptions.enableCommandPrompt = true; this.Opacity = 0; await Task.Delay(300); desktopBootOptions(); this.Opacity = 100; RestartBootOptions.Close(); BackgroundRefresh(); Class_Progress.StepCompleted("Ransomware", 3); //step three completed }