protected void uiButtonUpdate_Click(object sender, EventArgs e)
 {
     DBLayer db = new DBLayer();
     if (CurrentCourse != 0)
     {
         db.UpdateCourse(CurrentCourse, Convert.ToInt32(uiTextBoxMaxGrade.Text), Convert.ToInt32(uiTextBoxMinGrade.Text), uiTextBoxEnName.Text, uiTextBoxArName.Text,Convert.ToInt32(uiDropDownListClasses.SelectedValue), uiCheckBoxInTotal.Checked);
     }
     else
     {
         db.AddCourse(Convert.ToInt32(uiTextBoxMaxGrade.Text), Convert.ToInt32(uiTextBoxMinGrade.Text), uiTextBoxEnName.Text, uiTextBoxArName.Text, Convert.ToInt32(uiDropDownListClasses.SelectedValue), uiCheckBoxInTotal.Checked);
     }
     CurrentCourse = 0;
     uiPanelCurrentCourses.Visible = true;
     uiPanelCurrent.Visible = false;
     BindData();
 }