Exemple #1
0
        public static bool IsZoomInstalled(string viewDistanceSettingsFile, string cameraSettingsFile)
        {
            try
            {
                XDocument viewDistanceXML = LoadXML(viewDistanceSettingsFile);
                XDocument cameraXML       = LoadXML(cameraSettingsFile);

                return(ZoomInstaller.IsZoomInstalled(viewDistanceXML, cameraXML));
            }
            catch (Exception e)
            {
                Console.WriteLine("IsZoomInstalled caught exception: {0}", e);
                return(false);
            }
        }
Exemple #2
0
 public static void ToggleZoom(string viewDistanceSettingsFile, string cameraSettingsFile, bool install)
 {
     try
     {
         PrintInstallMessage("extended zoom", install);
         XDocument viewDistanceXML = LoadXML(viewDistanceSettingsFile);
         XDocument cameraXML       = LoadXML(cameraSettingsFile);
         if (install)
         {
             ZoomInstaller.InstallZoom(viewDistanceXML, cameraXML);
         }
         else
         {
             ZoomInstaller.UninstallZoom(viewDistanceXML, cameraXML);
         }
         PrintDoneMessage("extended zoom", install);
     }
     catch (Exception e)
     {
         Console.WriteLine("ToggleZoom caught exception: {0}", e);
     }
 }