Beispiel #1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            NewStudent newStudentDialog = new NewStudent();

            if (newStudentDialog.ShowDialog() == true)
            {
                DataSource.data.Add(newStudentDialog.Student);
            }
        }
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            //dataSource.data.Add(new Student(Guid.NewGuid().ToString()));
            NewStudent newStudentDialog = new NewStudent();

            if (newStudentDialog.ShowDialog() == true)
            {
                dataSource.data.Add(newStudentDialog.Student);
            }
        }