public TimetableController(FpmClient fpmClient, RozkladClient rozkladClient, ResultLessonsMapper resultLessonsMapper, MappingService mappingService)
 {
     this.rozkladClient  = rozkladClient;
     this.fpmClient      = fpmClient;
     mapper              = resultLessonsMapper;
     this.mappingService = mappingService;
 }
Exemple #2
0
 public SubjectsController(FpmClient fpmClient, RozkladClient rozkladClient, MappingService service, SetService <FpmGroup> setService, IMapper <string, FpmSubject> subjectMapper)
 {
     this.rozkladClient = rozkladClient;
     this.fpmClient     = fpmClient;
     this.service       = service;
     this.setService    = setService;
     this.subjectMapper = subjectMapper;
 }
Exemple #3
0
 public TeachersController(FpmClient fpmClient, RozkladClient rozkladClient, MappingService service, SetService <FpmTeacher> setService, IMapper <string, FpmTeacher> teacherMapper, IMapper <string, FpmSubject> subjectMapper)
 {
     this.rozkladClient = rozkladClient;
     this.fpmClient     = fpmClient;
     this.service       = service;
     this.setService    = setService;
     this.teacherMapper = teacherMapper;
     this.subjectMapper = subjectMapper;
 }
Exemple #4
0
        private void Select_Click(object sender, EventArgs e)
        {
            var group = fpmClient.Groups.Where(g => g.Name == textBox1.Text).FirstOrDefault();

            if (group != null && !String.IsNullOrWhiteSpace(group.Id))
            {
                fpmClient.CurrentGroup = group;
                rozkladClient          = new RozkladClient();
                rozkladClient.Group    = group.Name;
                GetTimeTable();
                checker = new TimeTableLibrary.GitHelpers.ShareMappingService(fpmClient, rozkladClient,
                                                                              new TimeTableLibrary.Mappers.RozkladMappers.RozkladSubjectMapper(rozkladClient),
                                                                              new TimeTableLibrary.Mappers.RozkladMappers.RozkladTeacherMapper(rozkladClient),
                                                                              new TimeTableLibrary.Mappers.FpmMappers.FpmSubjectMapper(fpmClient),
                                                                              new TimeTableLibrary.Mappers.FpmMappers.FpmTeacherMapper(fpmClient));

                MapSubjects.Enabled = true;
                MapTeachers.Enabled = true;
                EnablingChanges();
            }
        }
Exemple #5
0
 public RozkladTeacherMapper(RozkladClient client)
 {
     this.client = client;
 }
Exemple #6
0
 public HomeController(FpmClient fpmClient, RozkladClient rozkladClient, MappingService service)
 {
     this.fpmClient     = fpmClient;
     this.rozkladClient = rozkladClient;
     this.service       = service;
 }
 public RozkladSubjectMapper(RozkladClient client)
 {
     this.client = client;
 }
 public TeachersMapping(FpmClient fpmClient, RozkladClient rozkladClient) : this()
 {
     this.fpmClient     = fpmClient;
     this.rozkladClient = rozkladClient;
     mappedTeachers     = new Dictionary <string, string>();
 }
Exemple #9
0
 public SubjectsMapping(FpmClient fpmClient, RozkladClient rozkladClient) : this()
 {
     this.fpmClient     = fpmClient;
     this.rozkladClient = rozkladClient;
     mappedSubjects     = new Dictionary <string, string>();
 }