예제 #1
0
 private void cbChromeExtensionSupport_CheckedChanged(object sender, EventArgs e)
 {
     if (ready)
     {
         IntegrationHelpers.CreateChromeExtensionSupport(cbChromeExtensionSupport.Checked);
         btnChromeOpenExtensionPage.Enabled = cbChromeExtensionSupport.Checked;
     }
 }
예제 #2
0
        private static void RunBackwardCompatibilityTasks()
        {
            if (Settings.IsUpgradeFrom("11.4.1"))
            {
                RegionCaptureOptions regionCaptureOptions = DefaultTaskSettings.CaptureSettings.SurfaceOptions;
                regionCaptureOptions.AnnotationOptions  = new AnnotationOptions();
                regionCaptureOptions.LastRegionTool     = ShapeType.RegionRectangle;
                regionCaptureOptions.LastAnnotationTool = ShapeType.DrawingRectangle;
            }

            if (Settings.IsUpgradeFrom("11.5.0"))
            {
                if (File.Exists(ChromeHostManifestFilePath))
                {
                    IntegrationHelpers.CreateChromeExtensionSupport(true);
                }
            }
        }