コード例 #1
0
        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");
        }
コード例 #2
0
        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");

        }
コード例 #3
0
 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);
 }