コード例 #1
0
        private void EditSubjectInfoButton_Click(object sender, RoutedEventArgs e)
        {
            if (EditSubjectInfoWindow != null)
            {
                return;
            }

            EditSubjectInfoWindow = new EditSubjectInfoWindow(this, _connectionString, _userCredential,
                                                              SubjectInfo[SubjectInfoDataGrid.SelectedIndex]);
            EditSubjectInfoWindow.Show();
        }
コード例 #2
0
        private void ExitButton_Click(object sender, RoutedEventArgs e)
        {
            new AuthorizationWindow().Show();

            if (RegistrationWindow != null)
            {
                RegistrationWindow.Close();
            }
            if (AddStudentWindow != null)
            {
                AddStudentWindow.Close();
            }
            if (EditStudentWindow != null)
            {
                EditStudentWindow.Close();
            }
            if (AddGroupWindow != null)
            {
                AddGroupWindow.Close();
            }
            if (EditGroupWindow != null)
            {
                EditGroupWindow.Close();
            }
            if (AddSubjectInfoWindow != null)
            {
                AddSubjectInfoWindow.Close();
            }
            if (EditSubjectInfoWindow != null)
            {
                EditSubjectInfoWindow.Close();
            }
            if (AddTeacherWindow != null)
            {
                AddTeacherWindow.Close();
            }
            if (EditTeacherWindow != null)
            {
                EditTeacherWindow.Close();
            }
            if (AddAssociatedSubjectWindow != null)
            {
                AddAssociatedSubjectWindow.Close();
            }
            if (EditAssociatedSubjectWindow != null)
            {
                EditAssociatedSubjectWindow.Close();
            }

            Close();
        }