Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
 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;
     }
 }