Пример #1
0
 public void GetScholarshipData(Student tempStudent, int choiceKey)
 {
     tempStudent.AddScholarship(
         Constants.ShcolarshipNames[choiceKey],
         Constants.ShcolarshipDates[choiceKey],
         Constants.ShcolarshipMoneys[choiceKey]);
 }
Пример #2
0
        public void GetScholarshipData(Student tempStudent)
        {
            var choiceIdx = _random.Next(0, 4);

            tempStudent.AddScholarship(
                Constants.ShcolarshipNames[choiceIdx],
                Constants.ShcolarshipDates[choiceIdx],
                Constants.ShcolarshipMoneys[choiceIdx]);
        }
Пример #3
0
        public void GetScholarshipData(Student tempStudent, bool isAuto)
        {
            if (isAuto)
            {
                // TODO
                // 나중에 선택할 수 있는 기능 넣어야함
                var choiceIdx = _random.Next(0, 4);

                tempStudent.AddScholarship(
                    Constants.ShcolarshipNames[choiceIdx],
                    Constants.ShcolarshipDates[choiceIdx],
                    Constants.ShcolarshipMoneys[choiceIdx]);
            }
            else
            {
                ShowScholarshipDataList();
                var tempChoice = Int32.Parse(Console.ReadLine()) - 1;
                GetScholarshipData(tempStudent, tempChoice);
            }
        }