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); }
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); }
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(); }