public AddQualificationView(QualificationService qualificationService, QualificationListViewModel qualificationListViewModel) : this()
 {
     _qualificationService       = qualificationService;
     _qualificationListViewModel = qualificationListViewModel;
     _qualificationToAdd         = new AddQualificationViewModel(_qualificationService);
     DataContext = _qualificationToAdd;
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            // GenerateMockData.GenerateAllData();

            MainContext = new TecContext();

            _candidateService       = new CandidateService(MainContext);
            _candidateListViewModel = new CandidateListViewModel(_candidateService);

            _companyService       = new CompanyService(MainContext);
            _companyListViewModel = new CompanyListViewModel(_companyService);

            _qualificationService       = new QualificationService(MainContext);
            _qualificationListViewModel = new QualificationListViewModel(_qualificationService);

            _jobHistoryService       = new JobHistoryService(MainContext);
            _jobHistoryListViewModel = new JobHistoryListViewModel(_jobHistoryService);

            _placementService       = new PlacementService(MainContext);
            _placementListViewModel = new PlacementListViewModel(_placementService);

            _openingService       = new OpeningService(MainContext);
            _openingListViewModel = new OpeningListViewModel(_openingService);

            _courseService       = new CourseService(MainContext);
            _courseListViewModel = new CourseListViewModel(_courseService);

            _trainingSessionService       = new TrainingSessionService(MainContext);
            _scheduleService              = new ScheduleService(MainContext);
            _trainingSessionListViewModel = new TrainingSessionListViewModel(_trainingSessionService);


            CandidateTab.DataContext     = _candidateListViewModel;
            CompanyTab.DataContext       = _companyListViewModel;
            QualificationTab.DataContext = _qualificationListViewModel;
            HistoryTab.DataContext       = _jobHistoryListViewModel;
            OpeningTab.DataContext       = _openingListViewModel;
            PlacementTab.DataContext     = _placementListViewModel;
            CourseTab.DataContext        = _courseListViewModel;
            SessionTab.DataContext       = _trainingSessionListViewModel;
        }