private BaseSectionControl GetSectionControl(Screen screen, Section section, string ResourceKeyPrefix) { BaseSectionControl sectionControl = null; SectionType sectionType = SectionType.GetSectionType(section); if (sectionType != null) { if (!String.IsNullOrEmpty(sectionType.Assembly) && !String.IsNullOrEmpty(sectionType.Class)) { sectionControl = (BaseSectionControl)Activator.CreateInstance(sectionType.Assembly, sectionType.Class).Unwrap(); } if (sectionControl != null) { sectionControl.Screen = screen; sectionControl.Section = section; sectionControl.ResourceKeyPrefix = ResourceKeyPrefix; sectionControl.RenderControl(); } } return(sectionControl); }