private void OnCandidateHistoryReceived(CandidateHistory candidateHistory)
        {
            dialogService.CloseDetailDialog();
            if (candidateHistory.ProjectID == 0)
            {
                return;
            }


            candidateHistoryRepository.AddCandidateHistory(candidateHistory);
            CandidateHistoryCollection.Add(candidateHistory);

            SelectedCandidate.CandidateProjects.Add(
                new ConfigProjectCandidate
            {
                ConfigCandidateID  = SelectedCandidateTemp.ID,
                ConfigProjectID    = candidateHistory.ProjectID,
                ConfigProjectLibID = candidateHistory.ConfigProjectLib,
                ProjectName        = candidateHistory.ProjectName,
                Company            = candidateHistory.CompanyName,
                Area = candidateHistory.AreaName,

                CompanyId    = candidateHistory.CompanyID,
                Position     = candidateHistory.Position,
                ConfigAreaID = candidateHistory.ConfigAreaId
            });

            var tempProjects = SelectedCandidate.CandidateProjects;

            SelectedCandidate.CandidateProjects = tempProjects;
            prepareCollection();
        }
示例#2
0
        private void DeleteCoffee(object obj)
        {
            coffeeDataService.DeleteCoffee(selectedCoffee);
            Messenger.Default.Send <UpdateListMessage>(new UpdateListMessage());

            dialogService.CloseDetailDialog();
        }
 private void OnUpdateDocumentMessageReceived(UpdateDocument obj)
 {
     dialogService.CloseDetailDialog();
 }
 private void OnUpdateListMessageReceived(UpdateListMessage obj)
 {
     LoadData();
     dialogService.CloseDetailDialog();
 }
示例#5
0
 private void OnUpdateListMessageReceived(UpdateListMessage obj)
 {
     LoadData();
     dialogService.CloseDetailDialog();
     RaisePropertyChanged("SelectedCoffee");
 }