public NewProductionStopRegistrationForm(ProductionLeg productionLeg, IEnumerable<ProductionStop> availableProductionStops)
        {
            this.productionLeg = productionLeg;

            InitializeComponent();

            SetTexts();

            FillInProductionStopTypeComboBox(availableProductionStops);

            ShowViewState();
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 public ProductionLegViewEntity(ProductionLeg entity)
 {
     this.entity = entity;
 }