Пример #1
0
 protected void uiButtonUpdate_Click(object sender, EventArgs e)
 {
     DBLayer db = new DBLayer();
     if (CurrentClassType != 0)
     {
         db.UpdateClassType(CurrentClassType, uiTextBoxEnName.Text, uiTextBoxArName.Text);
     }
     else
     {
         db.AddClassType(uiTextBoxEnName.Text, uiTextBoxArName.Text);
     }
     uiPanelCurrentClassType.Visible = true;
     uiPanelCurrent.Visible = false;
     ClearFields();
     BindData();
 }