Esempio n. 1
0
        protected void RenderSizeAttribute()
        {
            BrowserPlatform browserPlatform = Utilities.GetBrowserPlatform(base.Request.UserAgent);
            BrowserType     browserType     = Utilities.GetBrowserType(base.Request.UserAgent);
            string          empty           = string.Empty;
            string          name            = Microsoft.Exchange.Clients.Owa.Core.Culture.GetUserCulture().Name;
            bool            flag            = name == "ja-JP" || name == "ko-KR" || name == "zh-CN" || name == "zh-TW" || name == "zh-HK" || name == "zh-MO" || name == "zh-SG";

            if (BrowserType.Firefox == browserType)
            {
                if (BrowserPlatform.Macintosh == browserPlatform)
                {
                    if (flag)
                    {
                        base.Response.Write(" size=\"43\"");
                        return;
                    }
                    base.Response.Write(" size=\"50\"");
                    return;
                }
                else if (browserPlatform == BrowserPlatform.Windows)
                {
                    if (flag)
                    {
                        base.Response.Write(" size=\"56\"");
                        return;
                    }
                    base.Response.Write(" size=\"50\"");
                }
            }
        }
Esempio n. 2
0
        public BrowserPlatformTest()
        {
            PlatformTest platform = new PlatformTest();
            AddDependentObject(platform);

            BrowserTest browser = new BrowserTest();
            AddDependentObject(browser);

            mBrowserPlatform = new BrowserPlatform();
            mBrowserPlatform.Platform = platform.Platform;
            mBrowserPlatform.Browser = browser.Browser;
        }
Esempio n. 3
0
        public BrowserPlatformTest()
        {
            PlatformTest platform = new PlatformTest();

            AddDependentObject(platform);

            BrowserTest browser = new BrowserTest();

            AddDependentObject(browser);

            mBrowserPlatform          = new BrowserPlatform();
            mBrowserPlatform.Platform = platform.Platform;
            mBrowserPlatform.Browser  = browser.Browser;
        }
Esempio n. 4
0
 // Token: 0x06000EE6 RID: 3814 RVA: 0x0005E498 File Offset: 0x0005C698
 public OwaBrowserUpdateRequiredException(BrowserPlatform browserPlatform) : base(null)
 {
     this.browserPlatform = browserPlatform;
 }