/// <summary> /// Wybranie studenta z listy w celu wyporzyczenia książki /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void StudentChooseButton_Click(object sender, RoutedEventArgs e) { StudentList studentList = new StudentList(true); if (studentList.ShowDialog() == true) { Name.Text = studentList.SelectedItem.Name; Lastname.Text = studentList.SelectedItem.Surname; AlbumNumber.Text = Convert.ToString(studentList.SelectedItem.AlbumNumber); } }
/// <summary> /// Interakcja na kliknięcie opcji listy studentów w menu Studenci /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void StudentListMenuItem_Click(object sender, RoutedEventArgs e) { StudentList studentList = new StudentList(); studentList.ShowDialog(); }