Exemplo n.º 1
0
 private void startWithWindowsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (WindowsFeatures.StartsOnBoot(WindowsFeatures.BootSegment.user, "ImmersiveGaming"))
     {
         WindowsFeatures.RemoveFromBoot(WindowsFeatures.BootSegment.user, "ImmersiveGaming");
     }
     else
     {
         WindowsFeatures.AddToBoot(WindowsFeatures.BootSegment.user, "ImmersiveGaming");
     }
 }
Exemplo n.º 2
0
 private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     startWithWindowsToolStripMenuItem.Checked = WindowsFeatures.StartsOnBoot(WindowsFeatures.BootSegment.user, "ImmersiveGaming");
 }