示例#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);
            }
        }