protected void EditButtonListSelectedIndexChanged(object sender, EventArgs e)
        {
            RadioButtonList editButtonList = (RadioButtonList)RoleBox.FindControl("editButtonList");

            RoleUsersList.DataSource = Roles.GetUsersInRole(editButtonList.SelectedItem.Text);
            RoleUsersList.DataBind();

            DetermineRemaingUsers(editButtonList);
        }
        protected void RemoveRole_OnClick(object sender, EventArgs e)
        {
            RadioButtonList list = (RadioButtonList)RoleBox.FindControl("editButtonList");

            ListItem item = list.SelectedItem;

            if (Roles.GetUsersInRole(item.Text).Length != 0)
            {
                Roles.RemoveUsersFromRole(Roles.GetUsersInRole(item.Text), item.Text);
            }

            Roles.DeleteRole(item.Text);

            Response.Redirect("~/Account/RoleEditor.aspx");
        }
        protected void DeleteFromRole_OnClick(object sender, EventArgs e)
        {
            RadioButtonList editButtonList = (RadioButtonList)RoleBox.FindControl("editButtonList");

            foreach (ListItem listItem in RoleUsersList.Items)
            {
                if (listItem.Selected)
                {
                    Roles.RemoveUserFromRole(listItem.Text, editButtonList.SelectedItem.Text);
                }
            }

            RoleUsersList.DataSource = Roles.GetUsersInRole(editButtonList.SelectedItem.Text);
            RoleUsersList.DataBind();

            DetermineRemaingUsers(editButtonList);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            RadioButtonList editButtonList = (RadioButtonList)RoleBox.FindControl("editButtonList");

            editButtonList.SelectedIndexChanged += EditButtonListSelectedIndexChanged;
        }