Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         foreach (var current in UserGroup.FindAllWithCache())
         {
             if (current.RadminID == 0)
             {
                 this.sourceusergroup.Items.Add(new ListItem(current.GroupTitle, current.ID.ToString()));
                 this.targetusergroup.Items.Add(new ListItem(current.GroupTitle, current.ID.ToString()));
             }
         }
         foreach (var current2 in UserGroup.GetAdminAndSpecialGroup())
         {
             this.sourceadminusergroup.Items.Add(new ListItem(current2.GroupTitle, current2.ID.ToString()));
             this.targetadminusergroup.Items.Add(new ListItem(current2.GroupTitle, current2.ID.ToString()));
         }
     }
 }