private void switch_w10_DisableSilentAppInstall_Click(object sender, EventArgs e) { if (!switch_w10_DisableSilentAppInstall.Checked) { Optimize.DisableSilentAppInstall(); } else { Optimize.EnableSilentAppInstall(); } Options.CurrentOptions.DisableSilentAppInstall = !switch_w10_DisableSilentAppInstall.Checked; }