Exemplo n.º 1
0
        private static void bindCheckBoxList(SecurityTool tool, IBlock sblock, IRole role)
        {
            IBlock cbBlock     = sblock.GetBlock("checkboxs");
            IList  checkValues = tool.GetCheckBoxList(role);

            foreach (ActionVo av in checkValues)
            {
                cbBlock.Set("a.Name", av.Name);
                cbBlock.Set("a.Value", av.Value);
                cbBlock.Set("a.Checked", av.Checked);
                cbBlock.Next();
            }
        }