コード例 #1
0
ファイル: CommandFieldEx.cs プロジェクト: sharad2/dcmslive
 public override bool Initialize(bool sortingEnabled, Control control)
 {
     if (!_bInitialized)
     {
         // Become invisble if security conditions are not met
         if (this.Visible)
         {
             this.Visible = ButtonEx.IsUserInAnyRole(control.Page.User, this.RolesRequired);
         }
         control.PreRender += new EventHandler(gv_PreRender);
         _bInitialized      = true;
     }
     return(base.Initialize(sortingEnabled, control));
 }