protected override void OnInit(EventArgs e) { base.OnInit(e); _repository = HccApp.CatalogServices.MembershipTypes; PageTitle = Localization.GetString("PageTitle"); CurrentTab = AdminTabType.Catalog; ValidateCurrentUserHasPermission(SystemPermissions.CatalogView); btnCreate.Click += btnCreate_Click; ucMembershipTypeEdit.SaveData += ucMembershipTypeEdit_SaveData; ucMembershipTypeEdit.CancelButton.Click += CancelButton_Click; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _repository = HccApp.CatalogServices.MembershipTypes; PageTitle = "Membership Product Types"; CurrentTab = AdminTabType.Catalog; ValidateCurrentUserHasPermission(SystemPermissions.CatalogView); rgProductTypes.NeedDataSource += rgProductTypes_NeedDataSource; rgProductTypes.DeleteCommand += rgProductTypes_DeleteCommand; rgProductTypes.EditCommand += rgProductTypes_EditCommand; btnCreate.Click += btnCreate_Click; ucMembershipTypeEdit.SaveData += ucMembershipTypeEdit_SaveData; ucMembershipTypeEdit.CancelButton.Click += CancelButton_Click; LocalizationUtils.LocalizeRadGrid(rgProductTypes, Localization); }