public void OnInit(PortalModuleBase module, IEnumerable <EduFormInfo> eduForms)
        {
            Module = module;

            var eduFormViewModels = EduFormViewModel.GetBindableList(eduForms, ViewModelContext, false);

            ViewState ["eduForms"] = Json.Serialize(eduFormViewModels.ToList());

            radioEduForm.DataSource = eduFormViewModels;
            radioEduForm.DataBind();
            radioEduForm.SelectedIndex = 0;
        }
        public void OnInit(PortalModuleBase module, IEnumerable <EduFormInfo> eduForms, IEnumerable <YearInfo> years)
        {
            Module = module;

            var eduFormViewModels = EduFormViewModel.GetBindableList(eduForms, ViewModelContext, false);

            ViewState ["eduForms"] = Json.Serialize(eduFormViewModels.ToList());
            ViewState ["years"]    = Json.Serialize(years.ToList());

            radioEduForm.DataSource = eduFormViewModels;
            radioEduForm.DataBind();
            radioEduForm.SelectedIndex = 0;

            var lastYear = GetLastYear();

            comboYear.DataSource = years.Select(y => new {
                y.YearId,
                Year = y.FormatWithCourse(lastYear)
            });

            comboYear.DataBind();
            comboYear.InsertDefaultItem("-");
        }