public NewProductionStopRegistrationForm(ProductionLeg productionLeg, IEnumerable<ProductionStop> availableProductionStops) { this.productionLeg = productionLeg; InitializeComponent(); SetTexts(); FillInProductionStopTypeComboBox(availableProductionStops); ShowViewState(); }
private void SaveLeg(ProductionLeg leg) { try { using (var repository = _repositoryFactory.CreateEntityRepository<ProductionLeg>()) { repository.Save(leg); } } catch (Exception ex) { log.Error("An exception were caught while saving a leg.", ex); MessageForm.ShowMessage(Strings.ExceptionCaught, Strings.CouldNotAddProductionShift); } }
public ProductionLegViewEntity(ProductionLeg entity) { this.entity = entity; }