예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Osoba          foundStudent  = studentTable.FindStudent(textBox1.Text, textBox2.Text);
            List <Predmet> foundSubjects = subjectTable.FindSubject(foundStudent);

            string subjectText = "";

            foreach (Predmet predmet in foundSubjects)
            {
                subjectText += predmet.Nazev.ToString() + " " + predmet.Ucitel.Jmeno + " " + predmet.Ucitel.Prijmeni + " " + System.Environment.NewLine;
            }


            MessageBox.Show("Nalezena osoba :" + foundStudent.Jmeno + " " + foundStudent.Prijmeni + ":" + System.Environment.NewLine + subjectText);
        }