/// <summary> /// Init event handler. /// </summary> protected override void OnInit(EventArgs e) { // Show devices selection button if (DeviceProfileInfoProvider.IsDeviceProfilesEnabled(SiteContext.CurrentSiteName) && LicenseHelper.CheckFeature(RequestContext.CurrentDomain, FeatureEnum.DeviceProfiles)) { ucProfiles = LoadControl("~/CMSModules/DeviceProfile/Controls/ProfilesMenuControl.ascx") as InlineUserControl; if (ucProfiles != null) { ucProfiles.ID = "ucProfiles"; ucProfiles.SetValue("UseSmallButton", true); ucProfiles.SetValue("DisplayRotateButtons", true); plcDevice.Controls.Add(ucProfiles); plcDevice.Visible = true; } } else { plcDevice.Visible = false; } base.OnInit(e); }