Exemplo n.º 1
0
 private void cbChromeExtensionSupport_CheckedChanged(object sender, EventArgs e)
 {
     if (ready)
     {
         IntegrationHelpers.CreateChromeExtensionSupport(cbChromeExtensionSupport.Checked);
         btnChromeOpenExtensionPage.Enabled = cbChromeExtensionSupport.Checked;
     }
 }
Exemplo n.º 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);
                }
            }
        }