Exemplo n.º 1
0
        public StudentLearningPlanList(string apiEndpoint)
        {
            InitializeComponent();

            ApiEndpoint = apiEndpoint;

            sRepo   = new StudentRepo(ApiEndpoint);
            lpRepo  = new LearningPlanRepo(ApiEndpoint);
            slpRepo = new StudentLearningPlanRepo(ApiEndpoint);
        }
Exemplo n.º 2
0
        public PlanVsCardList(string apiEndpoint)
        {
            InitializeComponent();

            ApiEndpoint = apiEndpoint;

            sRepo    = new StudentRepo(ApiEndpoint);
            lpRepo   = new LearningPlanRepo(ApiEndpoint);
            lpdRepo  = new LearningPlanDisciplineRepo(ApiEndpoint);
            lpdsRepo = new LearningPlanDisciplineSemesterRepo(ApiEndpoint);
            tciRepo  = new TeacherCardItemRepo(ApiEndpoint);
            tRepo    = new TeacherRepo(ApiEndpoint);
        }
Exemplo n.º 3
0
        public MarkList(string apiEndpoint)
        {
            ApiEndpoint = apiEndpoint;
            InitializeComponent();

            mRepo     = new MarkRepo(ApiEndpoint);
            mtRepo    = new MarkTeacherRepo(ApiEndpoint);
            sRepo     = new StudentRepo(ApiEndpoint);
            lpRepo    = new LearningPlanRepo(ApiEndpoint);
            lpdRepo   = new LearningPlanDisciplineRepo(ApiEndpoint);
            lpdsRepo  = new LearningPlanDisciplineSemesterRepo(ApiEndpoint);
            mtypeRepo = new MarkTypeRepo(ApiEndpoint);
            mtoRepo   = new MarkTypeOptionRepo(ApiEndpoint);
            tRepo     = new TeacherRepo(ApiEndpoint);
        }
Exemplo n.º 4
0
        private void LearningPlanList_Load(object sender, EventArgs e)
        {
            IntPtr pIcon = Resources.applebooks.GetHicon();

            Icon = Icon.FromHandle(pIcon);

            lpRepo   = new LearningPlanRepo(ApiEndpoint);
            lpdRepo  = new LearningPlanDisciplineRepo(ApiEndpoint);
            lpdsRepo = new LearningPlanDisciplineSemesterRepo(ApiEndpoint);
            fRepo    = new FacultyRepo(ApiEndpoint);

            Faculties = fRepo.all().OrderBy(f => f.sorting_order).ToList();
            lpFaculty.DisplayMember = "name";
            lpFaculty.ValueMember   = "id";
            lpFaculty.DataSource    = Faculties;

            RefreshLearningPlanList();
        }