private void ReapplyCreamAPI(object Sender, RoutedEventArgs Args) { if (Game.IsRunning) { AddImage(LocString(LocCode.CantReapplyGameRunning), "Error"); } else { CreamAPI.Install(); AddImage(LocString(LocCode.ReapplySuccess), "Success"); } }
private void SwitchCreamAPI(object Sender, RoutedEventArgs Args) { bool CreamAPIInstalled = CreamAPI.IsInstalled; if (Game.IsRunning) { AddImage(LocString(CreamAPIInstalled ? LocCode.CantUninstallCA : LocCode.CantInstallCA), "Error"); } else { if (CreamAPIInstalled) { CreamAPI.Uninstall(); } else { CreamAPI.Install(); } UpdateCreamAPIButtons(); AddImage(LocString(CreamAPIInstalled ? LocCode.UninstallCASuccess : LocCode.InstallCASuccess), "Success"); } }