protected override void OnPreRender(EventArgs e) { var resourceManager = GlobalizationService.GetResourceManager(typeof(ResourceIdentifier)); DuplicateStateCombinationsValidator.ErrorMessage = resourceManager.GetString( ResourceIdentifier.DuplicateStateCombinationsValidatorErrorMessage); NewStatefulAccessControlListButton.Text = resourceManager.GetString( ResourceIdentifier.NewStatefulAccessControlListButtonText); NewStatelessAccessControlListButton.Text = resourceManager.GetString( ResourceIdentifier.NewStatelessAccessControlListButtonText); SaveButton.Text = GlobalResourcesHelper.GetString(GlobalResources.Save); CancelButton.Text = GlobalResourcesHelper.GetString(GlobalResources.Cancel); base.OnPreRender(e); EnableNewAccessControlListButton(); HtmlHeadAppender.Current.RegisterUtilitiesJavaScriptInclude(); var url = ResourceUrlFactory.CreateResourceUrl(typeof(EditPermissionsForm), ResourceType.Html, "EditPermissionsForm.js"); HtmlHeadAppender.Current.RegisterJavaScriptInclude(GetType().FullName + "_script", url); }
public virtual void Configure <TBusinessObject> (BocList bocList, Func <TBusinessObject> newObjectFactory) where TBusinessObject : BaseSecurityManagerObject { ArgumentUtility.CheckNotNull("bocList", bocList); ArgumentUtility.CheckNotNull("newObjectFactory", newObjectFactory); if (!ControlHelper.IsDesignMode(bocList)) { bocList.FixedColumns.Insert( 0, new BocRowEditModeColumnDefinition { Width = Unit.Pixel(40), EditIcon = GetIcon("EditItem.gif", GlobalResourcesHelper.GetString(_globalizationService, GlobalResources.Edit)), SaveIcon = GetIcon("ApplyButton.gif", GlobalResourcesHelper.GetString(_globalizationService, GlobalResources.Apply)), CancelIcon = GetIcon("CancelButton.gif", GlobalResourcesHelper.GetString(_globalizationService, GlobalResources.Cancel)) }); bocList.EditableRowChangesCanceled += HandleEditableRowChangesCanceled; bocList.ListMenuItems.Add( new BocMenuItem { Text = GlobalResourcesHelper.GetString(_globalizationService, GlobalResources.New), Command = new InlineEditingNewItemMenuItemCommand <TBusinessObject> (newObjectFactory) }); bocList.ListMenuItems.Add( new BocMenuItem { Text = GlobalResourcesHelper.GetString(_globalizationService, GlobalResources.Delete), RequiredSelection = RequiredSelection.OneOrMore, Command = new InlineEditingDeleteItemMenuItemCommand <TBusinessObject>() }); } }
protected override void OnPreRender(EventArgs e) { Title = GlobalizationService.GetResourceManager(typeof(ResourceIdentifier)).GetString(ResourceIdentifier.Title); SaveButton.Text = GlobalResourcesHelper.GetString(GlobalResources.Save); CancelButton.Text = GlobalResourcesHelper.GetString(GlobalResources.Cancel); base.OnPreRender(e); }