Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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
        }
Esempio n. 3
0
 private void Restart_Click(object sender, EventArgs e)
 {
     RestartBootOptions.ContextMenu = new ContextMenu();
     RestartBootOptions.Show(Cursor.Position);
     Class_Progress.StepCompleted("Ransomware", 2); //step two completed
 }