Пример #1
0
        // отображение формы тренера
        public static void DisplayCoach(ref Coach coach)
        {
            CoachForm coachForm = new CoachForm();

            coachForm.currentCoach = coach;

            coachForm.lbName.Text  = coach.Name + " " + coach.Surname;
            coachForm.lbskill.Text = coach.Skill.ToString();
            coachForm.ShowDialog();
        }
Пример #2
0
        private void btChangeCoach_Click(object sender, EventArgs e)
        {
            Coach currentCoach = new Coach();  // создание текущего объекта тренера

            // вызов формы тренера

            CoachForm.DisplayCoach(ref currentCoach);


            lbCoach.Text = (currentTeam.TeamCoach = currentCoach).ToString();
        }