示例#1
0
        private void btnLuu_Click(object sender, EventArgs e)
        {
            getMatHangEditInfo();
            bool re = matHangBUS.sua(matHang);

            if (re)
            {
                XtraMessageBox.Show("THÔNG TIN ĐÃ ĐƯỢC CẬP NHẬT", "Notifications", MessageBoxButtons.OK, MessageBoxIcon.Information);
                frmMH.loadDanhSachMatHang();
                frmMH.dataGridViewMatHang.Refresh();

                this.Close();
            }
            else
            {
                XtraMessageBox.Show("CÓ LỖI XẢY RA, VUI LÒNG THỬ LẠI SAU", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
        private int updateMatHang(MatHangDTO mathang)
        {
            bool re = matHangBUS.sua(mathang);

            return(re == true ? 1 : 0);
        }