private void frmAddBrand_Load(object sender, EventArgs e) { if (_entityState == EntityState.Dirty) { Entities.Measurement measurement = new BusinessLayer.GenericService <Entities.Measurement>().GetSingle(b => b.Id == MeasurementID); txtComment.Text = measurement.Description; txtName.Text = measurement.Name; } }
private void frmAddLocation_Load(object sender, EventArgs e) { if (_entityState == EntityState.Dirty) { Entities.Location loacation = new BusinessLayer.GenericService <Entities.Location>().GetSingle(l => l.Id == LocationID); txtName.Text = loacation.Name; txtComment.Text = loacation.Comment; } }
private void frmAddBrand_Load(object sender, EventArgs e) { if (_entityState == EntityState.Dirty) { Entities.Brand brand = new BusinessLayer.GenericService <Entities.Brand>().GetSingle(b => b.BrandID == BrandID); txtComment.Text = brand.Description; txtName.Text = brand.BrandName; } }
private void frmAddCategory_Load(object sender, EventArgs e) { if (_entityState == EntityState.Dirty) { Entities.Category category = new BusinessLayer.GenericService <Entities.Category>().GetSingle(c => c.CategoryID == CategoryID); txtComment.Text = category.Comment; txtName.Text = category.Name; } }