Example #1
0
        /// <summary>
        /// Get the configured web media engine
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public static WebMedia GetConfiguredWebMedia(RegionOptions options)
        {
            WebMedia media;

            if (ApplicationSettings.Default.FallbackToInternetExplorer)
            {
                media = new WebIe(options);
            }
            else
            {
                media = new WebCef(options);
            }
            return(media);
        }
Example #2
0
        /// <summary>
        /// Get the configured web media engine
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public static WebMedia GetConfiguredWebMedia(RegionOptions options, string type)
        {
            WebMedia media;

            if (type == "ie")
            {
                media = new WebIe(options);
            }
            else if (type == "edge")
            {
                media = new WebEdge(options);
            }
            else if (type == "cef")
            {
                media = new WebCef(options);
            }
            else
            {
                media = GetConfiguredWebMedia(options);
            }
            return(media);
        }