private void btnEdit_Click(object sender, EventArgs e)
        {
            try
            {
                Halls aHall = new Halls();
                if (ValidateData() == true)
                {
                    aHall.ID = this.IDHall;
                    aHall.Sku = txtSku.Text;
                    TimeSpan Codespan = new TimeSpan(DateTime.Now.Ticks);
                    aHall.Code = Math.Floor(Codespan.TotalSeconds).ToString();
                    aHall.CostRef = decimal.Parse(txtCostRef.Text);
                    aHall.CostUnit = cbbCostUnit.Text;
                    aHall.Disable = bool.Parse(cbbDisable.Text);
                    aHall.IDLang = 1;
                    aHall.Info = txtInfo.Text;
                    aHall.Intro = txtIntro.Text;
                    aHall.NumTableMax = int.Parse(txtNumTableMax.Text);
                    aHall.NumTableStandard = int.Parse(txtNumTableStandard.Text);
                    aHall.Image = (Byte[])new ImageConverter().ConvertTo(pbxImage.Image, typeof(Byte[]));
                    aHall.Type = Convert.ToInt32(lueHallType.EditValue);
                    aHall.Status = int.Parse(cbbStatus.Text);
                    aHallsBO.Update(aHall);
                    this.afrmLst_Halls.ReloadData();

                    MessageBox.Show("Sửa thông tin hội trường thành công !", "Success ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmUpd_Halls.btnEdit_Click\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);

            }
        }
 public void SetValue(Halls aHalls)
 {
     this.Code = aHalls.Code;
     this.CostRef = aHalls.CostRef;
     this.CostUnit = aHalls.CostUnit;
     this.Disable = aHalls.Disable;
     this.ID = aHalls.ID;
     this.IDLang = aHalls.IDLang;
     this.Image = aHalls.Image;
     this.Info = aHalls.Info;
     this.Intro = aHalls.Intro;
     this.NumTableMax = aHalls.NumTableMax;
     this.NumTableStandard = aHalls.NumTableStandard;
     this.Sku = aHalls.Sku;
     this.Type = aHalls.Type;
     this.Status = aHalls.Status;
 }