Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <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();
        }