public AdminWindow(string AdminLogin, string AdminPass)
        {
            InitializeComponent();
            StudentEditor.Init();
            AdminEditor.Init();
            DisciplineEditor.Init();
            LoggedAdminLogin = AdminLogin;
            AddAdminTab      = new AddAdminTab(this);

            if (!DBInterface.GetAdminPermission(AdminLogin, AdminPass))
            {
                AddAdminTabItem.IsEnabled = false;
            }
            SAddMaleRB.IsChecked   = true;
            SAddFemaleRB.IsChecked = false;
            DataLoad();
        }
 private void DataLoad()
 {
     StudentsDG.ItemsSource    = StudentEditor.GetStudents();
     DisciplinesDG.ItemsSource = DisciplineEditor.GetDisciplines();
 }
 private void SaveDisciplinesBTN_Click(object sender, RoutedEventArgs e)
 {
     DisciplineEditor.SaveChanges();
 }