Ejemplo n.º 1
0
        //创建权限列表
        private void createAuthorityBox()
        {
            List <string> allAuthorities = BathClass.getAllAuthorities();

            int count = allAuthorities.Count;
            int theCount = 3, row = 0;

            while (true)
            {
                for (int col = 0; col < 4; col++)
                {
                    int   x  = col * 150 + 20;
                    int   y  = row * 40 + 20;
                    Point pt = new Point(x, y);

                    string authorityStr = allAuthorities[theCount];
                    //createCheckbox(pt, authorityStr, getAuthority(authorityStr));
                    theCount++;
                    if (theCount == count)
                    {
                        return;
                    }
                }
                row++;
            }
        }