Ejemplo n.º 1
0
 private void ReapplyCreamAPI(object Sender, RoutedEventArgs Args)
 {
     if (Game.IsRunning)
     {
         AddImage(LocString(LocCode.CantReapplyGameRunning), "Error");
     }
     else
     {
         CreamAPI.Install();
         AddImage(LocString(LocCode.ReapplySuccess), "Success");
     }
 }
Ejemplo n.º 2
0
        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");
            }
        }