public bool Add() { bool isEmpty = ValidateEmpty(); if (!isEmpty) { return(false); } if (SqlRequestFunction.CauHoiExist(txtCH.Text.Trim())) { MessageBox.Show("Mã môn học đã tồn tại.", "", MessageBoxButtons.OK); return(false); } else { object[] data = new object[] { Int32.Parse(txtCH.Text.ToString()), cmbMonHoc.SelectedValue.ToString(), cmbTrinhDo.SelectedValue.ToString(), txtNoiDung.Text, txtA.Text, txtB.Text, txtC.Text, txtD.Text, cmbDapAn.Text, cmbMaGV.Text }; this._callAction.FillData(Share.Action.RecoveryAdd, SetUpCurrentData(data)); return(true); } }