Ejemplo n.º 1
0
        private void CreateUserList()
        {
            UserDropDownList.Items.Clear();

            if (GroupDropDownList.SelectedItem != null)
            {
                var users = StudentRecordFinder.GetUsersFromGroup(int.Parse(GroupDropDownList.SelectedItem.Value));

                UserDropDownList.Items.Add(new ListItem("All Users From Group", "0"));

                foreach (var u in users)
                {
                    UserDropDownList.Items.Add(new ListItem(u.Login, u.ID.ToString()));
                }
            }
        }
Ejemplo n.º 2
0
        private void CreateUserList()
        {
            UserDropDownList.Items.Clear();

            if (GroupDropDownList.SelectedItem != null)
            {
                var users = StudentRecordFinder.GetUsersFromGroup(int.Parse(GroupDropDownList.SelectedItem.Value));

                UserDropDownList.Items.Add(new ListItem(Translations.ReCompilePageController_CreateUserList_All_Users_From_Group, "0"));

                foreach (var u in users)
                {
                    UserDropDownList.Items.Add(new ListItem(u.Login, u.ID.ToString()));
                }
            }
        }
Ejemplo n.º 3
0
        private IList <TblUsers> GetUsersForReCompilation()
        {
            var users = new List <TblUsers>();

            int selectedUserId  = int.Parse(UserDropDownList.SelectedItem.Value);
            int selectedGroupId = int.Parse(GroupDropDownList.SelectedItem.Value);

            if (selectedUserId == 0)
            {
                users.AddRange(StudentRecordFinder.GetUsersFromGroup(selectedGroupId));
            }
            else
            {
                users.Add(ServerModel.DB.Load <TblUsers>(selectedUserId));
            }

            return(users);
        }