public void SaveNewCareer() { string name = this.careerTabView.GrabNewCareerName(); string description = this.careerTabView.GrabNewCareerDescription(); ICareer savingCareer = new Career(name, description, this.studyPlanController.SubjectRepository); foreach (ISkill skill in this.careerTabView.SelectedSkills()) { savingCareer.AddSkill(skill); } this.careerRepository.Add(savingCareer); this.careerTabView.ClearSkillSelect(); PopulateSkillList(); ShowAllCareers(); this.careerTabView.ClearNewCareerData(); this.careerTabView.ShowMessage("Career added to vault"); }
public void SaveNewCareer() { string name = this.careerTabView.GrabNewCareerName(); string description = this.careerTabView.GrabNewCareerDescription(); ICareer savingCareer = new Career(name,description,this.studyPlanController.SubjectRepository); foreach (ISkill skill in this.careerTabView.SelectedSkills()) { savingCareer.AddSkill(skill); } this.careerRepository.Add(savingCareer); this.careerTabView.ClearSkillSelect(); PopulateSkillList(); ShowAllCareers(); this.careerTabView.ClearNewCareerData(); this.careerTabView.ShowMessage("Career added to vault"); }
public void SetNewCareer() { ICareer newCareer = new Career("chosen by student", "no description",this.studyPlanController.SubjectRepository); foreach(ISkill skill in this.careerTabView.SelectedSkills()) { newCareer.AddSkill(skill); } this.studyPlanController.SetCareer(newCareer); }