コード例 #1
0
 private void OnTimerTick(object sender, EventArgs e)
 {
     try
     {
         _timer.Stop();
         // instantiate document
         _doc = new Document(BoxName, BoxName, "", DateTime.Now, null);
         //
         if (uCtrlDimensionsBox.ValueX < 1.0e-03 || uCtrlDimensionsBox.ValueY < 1.0e-03 || uCtrlDimensionsBox.ValueZ < 1.0e-03)
         {
             return;
         }
         // recompute optimisation
         PackOptimizer packOptimizer = new PackOptimizer(
             SelectedBox, SelectedPallet,
             BuildParamSetPackOptim(),
             cbColor.Color
             );
         _analyses = packOptimizer.BuildAnalyses(BuildConstraintSet(), allowMultipleLayerOrientations: true);
         // refill solution grid
         FillGrid();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }
コード例 #2
0
        private void OnTimerTick(object sender, EventArgs e)
        {
            try
            {
                _timer.Stop();
                // recompute optimisation
                var packOptimizer = new PackOptimizer(
                    SelectedBox, SelectedPallet, BuildConstraintSet(),
                    BuildParamSetPackOptim()
                    );
                _analyses = packOptimizer.BuildAnalyses(false);

                // refill solution grid
                FillGrid();
            }
            catch (Exception ex)
            {
                _log.Error(ex.ToString());
            }
        }
コード例 #3
0
 private void onTimerTick(object sender, EventArgs e)
 {
     try
     {
         _timer.Stop();
         // instantiate document
         _doc = new Document(BoxName, BoxName, "", DateTime.Now, null);
         // recompute optimisation
         PackOptimizer packOptimizer = new PackOptimizer(
             SelectedBox, SelectedPallet,
             BuildParamSetPackOptim(),
             cbColor.Color
             );
         _analyses = packOptimizer.BuildAnalyses(BuildConstraintSet());
         // refill solution grid
         FillGrid();
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
 }