public ApplicantMainForm(DataService service, Applicant applicant) { this.service = service; this.applicant = applicant; this.appRepos = new ApplicantRepository(this.service); this.empRepos = new EmployerRepository(this.service); this.vacRepos = new VacancyRepository(this.service); this.resRepos = new ResumeRepository(this.service); this.reqRepos = new RequestRepository(this.service); this.resumes = resRepos.ResumesByLogin(this.applicant.Login); this.vacancies = vacRepos.ShownVacancies(); this.requests = reqRepos.RequestByApplicant(this.resRepos, this.applicant.Login); InitializeComponent(); }
private void UpdateVacanciesButton_Click(object sender, EventArgs e) { this.vacancies = vacRepos.ShownVacancies(); this.FullfillVacanciesTable(); }