public Diablog_NCC(string id) { InitializeComponent(); border(); // load noi dung de sua thong tin NhaCungCapDB db = new NhaCungCapDB(); #region gắn giá trị this.id = Convert.ToInt32(id); NhaCungCap ncc = db.getNhaCungCap(id); txbTenNCC.Text = ncc.TenNCC; txbSoDienThoai.Text = ncc.SoDienThoai; txbDiaChi.Text = ncc.DiaChi; #endregion // An button add btnAdd.Enabled = false; btnAdd.Visible = false; // Hiện button edit btnEdit.Visible = true; }