public ProductLDForm(int id, User user) { InitializeComponent(); InitForm(user); textName.Focus(); itemId = id; var biz = new ProductLDBiz(); var item = biz.LoadItem(id); textName.Text = item.Name; if (item.ProductTypeId.HasValue) { drlType.SelectedValue = item.ProductTypeId.Value; } numberPrice.Text = item.Price.ToString(); created = item.Created; createdBy = item.CreatedByUserId; modified = item.Modified; modifiedBy = item.ModifiedByUserId; this.Text = "Sửa sản phẩm"; }