Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string c = txtnamemh.Text.ToLower();
            string d = VietHoa(c);

            if (txtnamemh.Text != "" && checkNameMH1.ErrorMessage == null)
            {
                string   ma      = "MH" + d;
                CTMonHoc chitiet = new CTMonHoc(ma, d);
                HSB.AddMH(chitiet);
                MessageBox.Show("successfull");
            }
            else
            {
                MessageBox.Show("vui lòng nhập đúng tên môn học");
            }
        }