private void buttonInstallUninstall_Click(object sender, EventArgs e) { foreach (Control c in Controls) { c.Enabled = false; } bool result; if (!ExplorerPatcher.IsInstalled) { result = ExplorerPatcher.Install(); } else { result = ExplorerPatcher.Uninstall(); } string message = $"SimpleClassicTheme {(result ? "succesfully installed" : "failed to install")} ExplorerPatcher."; MessageBox.Show(message); foreach (Control c in Controls) { c.Enabled = true; } LoadConfig(); }
private void buttonApply_Click(object sender, EventArgs e) { SaveConfig(); buttonApply.Enabled = false; if (Configuration.Enabled) { ExplorerPatcher.Configuration.ConfigurationApplying = true; ClassicTheme.MasterDisable(Configuration.EnableTaskbar); ExplorerPatcher.ApplyConfiguration(true); ClassicTheme.MasterEnable(Configuration.EnableTaskbar); ExplorerPatcher.Configuration.ConfigurationApplying = false; } else { ExplorerPatcher.ApplyConfiguration(true); } }