private void ProcessAccountRoles(int AccountID)
 {
     for (int i = 0; i < lbRoles.Items.Count; i++)
     {
         if (lbRoles.Items[i].Selected)
         {
             accountRoles.Insert(AccountID, lbRoles.Items[i].Text);
         }
     }
 }
예제 #2
0
 private void ProcessAccountRoles()
 {
     try
     {
         role.Insert(1, "Administrator");
     }
     catch (SqlException)
     {
         // Duplicate key means jobs done already... move on.
     }
 }
예제 #3
0
        private void ProcessAccountRoles()
        {
            roles.Remove(aid);

            for (int i = 0; i < lbRoles.Items.Count; i++)
            {
                if (lbRoles.Items[i].Selected)
                {
                    roles.Insert(aid, lbRoles.Items[i].Text);
                }
            }
        }