Exemplo n.º 1
0
 private static int AdjustWndProcFlagsFromConfig(int wndProcFlags)
 {
     if (WindowsFormsSection.GetSection().JitDebugging)
     {
         wndProcFlags |= 4;
     }
     return(wndProcFlags);
 }
Exemplo n.º 2
0
        internal static WindowsFormsSection GetSection() {
            WindowsFormsSection section = null;

            try {
                section = (WindowsFormsSection) System.Configuration.PrivilegedConfigurationManager.GetSection("system.windows.forms");
            }
            catch {
                Debug.Fail("Exception loading config for windows forms");
                section = new WindowsFormsSection();
            }

            return section;
        }
        internal static WindowsFormsSection GetSection()
        {
            WindowsFormsSection section = null;

            try {
                section = (WindowsFormsSection)System.Configuration.PrivilegedConfigurationManager.GetSection("system.windows.forms");
            }
            catch {
                Debug.Fail("Exception loading config for windows forms");
                section = new WindowsFormsSection();
            }

            return(section);
        }