public void ReCompileButtonClick(object sender, EventArgs e)
        {
            IList <TblUsers> users = GetUsersForReCompilation();

            throw new NotImplementedException();

            if (ThemeDropDownList.SelectedItem != null)
            {
                var items = StudentRecordFinder.GetItemsForTheme(int.Parse(ThemeDropDownList.SelectedItem.Value));

                var answersForReCompilation = new List <TblUserAnswers>();

                foreach (var item in items)
                {
                    //AddAnswersFromPageToReCompilationList(item, users, answersForReCompilation);
                }

                ReCompile(answersForReCompilation);

                Description.Value = Translations.ReCompilePageController_ReCompileButtonClick_ReCompilation_is_started;
            }
            else
            {
                Description.Value = Translations.ReCompilePageController_ReCompileButtonClick_Theme_not_selected____;
            }
        }
Beispiel #2
0
        public static IList <UserResultForItem> GetStatisticForThemeForUser(int userId, int themeId)
        {
            var items = StudentRecordFinder.GetItemsForTheme(themeId);

            var result = new List <UserResultForItem>();

            foreach (var item in items)
            {
                var ur = new UserResultForItem(userId, item, null);
                ur.Calc();
                result.Add(ur);
            }

            return(result);
        }