Пример #1
0
 private void btnAddProduct_Click(object sender, EventArgs e)
 {
     if (categoryBLL.getitem(txtName.Text) == 0)
     {
         categoryBLL.InsertCategory(txtName.Text, txtDescription.Text);
         fcategory.hienthi();
         this.Close();
     }
     else
     {
         MessageBox.Show("Trùng tên danh mục", "Thông báo");
     }
 }
Пример #2
0
 private void btnAddProduct_Click(object sender, EventArgs e)
 {
     categoryBLL.InsertCategory(txtName.Text, txtDescription.Text);
     fcategory.hienthi();
     this.Close();
 }