protected void uiButtonUpdate_Click(object sender, EventArgs e)
 {
     DBLayer db = new DBLayer();
     if (CurrentSchoolYear != 0)
     {
         db.UpdateSchoolYear(CurrentSchoolYear, uiTextBoxEnName.Text, uiTextBoxArName.Text);
         if (uiCheckBoxCurrentYear.Checked)
         {
             db.SetCurrentSchoolYear(CurrentSchoolYear);
         }
     }
     else
     {
         int id = db.AddSchoolYear(uiTextBoxEnName.Text, uiTextBoxArName.Text);
         if (uiCheckBoxCurrentYear.Checked)
         {
             db.SetCurrentSchoolYear(id);
         }
     }
     uiPanelCurrentSchoolYear.Visible = true;
     uiPanelCurrent.Visible = false;
     ClearFields();
     BindData();
 }