Bloom.Workspace.WorkspaceView.CheckDPISettings C# (CSharp) Method

CheckDPISettings() private method

private CheckDPISettings ( ) : void
return void
        private void CheckDPISettings()
        {
            Graphics g = this.CreateGraphics();
            try
            {

                var dx = g.DpiX;
                DPIOfThisAccount = dx;
                var dy = g.DpiY;
                if(dx!=96 || dy!=96)
                {
                    SIL.Reporting.ErrorReport.NotifyUserOfProblem(
                        "The \"text size (DPI)\" or \"Screen Magnification\" of the display on this computer is set to a special value, {0}. With that setting, some thing won't look right in Bloom. Possibly books won't lay out correctly. If this is a problem, change the DPI back to 96 (the default on most computers), using the 'Display' Control Panel.", dx);
                }
            }
            finally
            {
                g.Dispose();
            }
        }