예제 #1
0
        private void bunifuFlatButton2_Click(object sender, EventArgs e)
        {
            SanPham_DTO kh_DTO = new SanPham_DTO(txtTen.Text, 0,
                                                 txtGiaNhap.Text, txtGiaBan.Text, txtDonVi.Text, "Phụ tùng");

            if (sp_BUS.Insert(kh_DTO))
            {
                MessageBox.Show("Thêm thành công!");
                Kho_GUI_Load(sender, e);
            }
            else
            {
                MessageBox.Show("Thêm thất bại!");
            }
        }