Ejemplo n.º 1
0
 public FormNewCylinder(Document document, CylinderProperties cylinder)
     : base(document, cylinder)
 {
     InitializeComponent();
     // properties
     if (null != cylinder)
     {
         uCtrlDiameterOuter.Value = 2.0 * cylinder.RadiusOuter;
         uCtrlDiameterInner.Value = 2.0 * cylinder.RadiusInner;
         uCtrlHeight.Value        = cylinder.Height;
         uCtrlWeight.Value        = cylinder.Weight;
         cbColorWallOuter.Color   = cylinder.ColorWallOuter;
         cbColorWallInner.Color   = cylinder.ColorWallInner;
         cbColorTop.Color         = cylinder.ColorTop;
     }
     else
     {
         uCtrlDiameterOuter.Value = UnitsManager.ConvertLengthFrom(2.0 * 75.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlDiameterInner.Value = UnitsManager.ConvertLengthFrom(0.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlHeight.Value        = UnitsManager.ConvertLengthFrom(150.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlWeight.Value        = UnitsManager.ConvertMassFrom(1.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         cbColorWallOuter.Color   = System.Drawing.Color.LightSkyBlue;
         cbColorWallInner.Color   = System.Drawing.Color.Chocolate;
         cbColorTop.Color         = System.Drawing.Color.Gray;
     }
     // disable Ok button
     UpdateStatus(string.Empty);
     // units
     UnitsManager.AdaptUnitLabels(this);
 }
Ejemplo n.º 2
0
        public FormNewPalletFilm(Document doc, PalletFilmProperties item)
            : base(doc, item)
        {
            InitializeComponent();

            if (null != item)
            {
                chkbTransparency.Checked = item.UseTransparency;
                chkbHatching.Checked     = item.UseHatching;
                HatchSpacing             = UnitsManager.ConvertLengthFrom(item.HatchSpacing, UnitsManager.UnitSystem.UNIT_METRIC1);
                HatchAngle = item.HatchAngle;
                FilmColor  = item.Color;
                Weight     = item.Weight;
            }
            else
            {
                chkbTransparency.Checked = true;
                chkbHatching.Checked     = true;
                HatchSpacing             = UnitsManager.ConvertLengthFrom(150.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                HatchAngle = 45.0;
                FilmColor  = Color.LightSkyBlue;
            }
            OnChkbHatchingCheckedChanged(this, null);
            UpdateStatus(string.Empty);
            // units
            UnitsManager.AdaptUnitLabels(this);
        }
Ejemplo n.º 3
0
        public FormNewPalletCap(Document document, PalletCapProperties capProperties)
            : base(document, capProperties)
        {
            InitializeComponent();
            // units
            UnitsManager.AdaptUnitLabels(this);

            if (null != capProperties)
            {
                CapLength = capProperties.Length;
                CapWidth  = capProperties.Width;
                CapHeight = capProperties.Height;

                CapInnerLength = capProperties.InsideLength;
                CapInnerWidth  = capProperties.InsideWidth;
                CapInnerHeight = capProperties.InsideHeight;

                CapWeight = capProperties.Weight;
                CapColor  = capProperties.Color;
            }
            else
            {
                CapLength = UnitsManager.ConvertLengthFrom(1200.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                CapWidth  = UnitsManager.ConvertLengthFrom(1000.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                CapHeight = UnitsManager.ConvertLengthFrom(50.0, UnitsManager.UnitSystem.UNIT_METRIC1);

                CapWeight = UnitsManager.ConvertSurfaceMassFrom(0.5, UnitsManager.UnitSystem.UNIT_METRIC1);
                CapColor  = Color.Khaki;
            }
            UpdateStatus(string.Empty);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor (edit existing properties)
 /// </summary>
 /// <param name="document">Document to which the edited item belongs</param>
 /// <param name="truckProperties">Edited item</param>
 public FormNewTruck(Document document, TruckProperties truckProperties)
     : base(document, truckProperties)
 {
     InitializeComponent();
     // initialize data
     if (null != truckProperties)
     {
         TruckLength = truckProperties.Length;
         TruckWidth = truckProperties.Width;
         TruckHeight = truckProperties.Height;
         TruckAdmissibleLoadWeight = truckProperties.AdmissibleLoadWeight;
         TruckColor = truckProperties.Color;
     }
     else
     { 
         TruckLength = UnitsManager.ConvertLengthFrom(13600, UnitsManager.UnitSystem.UNIT_METRIC1);
         TruckWidth = UnitsManager.ConvertLengthFrom(2450, UnitsManager.UnitSystem.UNIT_METRIC1);
         TruckHeight = UnitsManager.ConvertLengthFrom(2700, UnitsManager.UnitSystem.UNIT_METRIC1);
         TruckAdmissibleLoadWeight = UnitsManager.ConvertMassFrom(38000, UnitsManager.UnitSystem.UNIT_METRIC1);
         TruckColor = Color.LightBlue;            
     }
     UpdateStatus(string.Empty);
     // units
     UnitsManager.AdaptUnitLabels(this);
 }
Ejemplo n.º 5
0
        public FormNewPalletCorners(Document doc, PalletCornerProperties palletCorners)
            : base(doc, palletCorners)
        {
            InitializeComponent();

            if (null != palletCorners)
            {
                CornerLength    = palletCorners.Length;
                CornerWidth     = palletCorners.Width;
                CornerThickness = palletCorners.Thickness;
                CornerWeight    = palletCorners.Weight;
                CornerColor     = palletCorners.Color;
            }
            else
            {
                CornerLength    = UnitsManager.ConvertLengthFrom(1200.0, UnitsManager.UnitSystem.UNIT_METRIC1);;
                CornerWidth     = UnitsManager.ConvertLengthFrom(40.0, UnitsManager.UnitSystem.UNIT_METRIC1);;
                CornerThickness = UnitsManager.ConvertLengthFrom(5.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                CornerWeight    = UnitsManager.ConvertMassFrom(0.050, UnitsManager.UnitSystem.UNIT_METRIC1);
                CornerColor     = Color.Khaki;
            }
            UpdateStatus(string.Empty);
            // units
            UnitsManager.AdaptUnitLabels(this);
        }
Ejemplo n.º 6
0
 public FormNewBag(Document document, BagProperties bag)
     : base(document, bag)
 {
     InitializeComponent();
     if (DesignMode)
     {
         return;
     }
     // properties
     if (null != bag)
     {
         uCtrlOuterDimensions.ValueX = bag.Length;
         uCtrlOuterDimensions.ValueY = bag.Width;
         uCtrlOuterDimensions.ValueZ = bag.Height;
         uCtrlRadius.Value           = bag.Radius;
         uCtrlWeight.Value           = bag.Weight;
         uCtrlNetWeight.Value        = bag.NetWeight;
         cbColor.Color = bag.ColorFill;
     }
     else
     {
         uCtrlOuterDimensions.ValueX = UnitsManager.ConvertLengthFrom(400.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlOuterDimensions.ValueY = UnitsManager.ConvertLengthFrom(300.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlOuterDimensions.ValueZ = UnitsManager.ConvertLengthFrom(100.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlRadius.Value           = UnitsManager.ConvertLengthFrom(40.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlWeight.Value           = UnitsManager.ConvertMassFrom(1.0, UnitsManager.UnitSystem.UNIT_METRIC1);
         uCtrlNetWeight.Value        = OptDouble.Zero;
         cbColor.Color = Color.Beige;
     }
     // units
     UnitsManager.AdaptUnitLabels(this);
 }
Ejemplo n.º 7
0
        public FormNewInterlayer(Document document, InterlayerProperties interlayerProperties)
            : base(document, interlayerProperties)
        {
            InitializeComponent();
            // initialize value
            if (null != interlayerProperties)
            {
                InterlayerLength = interlayerProperties.Length;
                InterlayerWidth  = interlayerProperties.Width;
                Thickness        = interlayerProperties.Thickness;
                Weight           = interlayerProperties.Weight;
                Color            = interlayerProperties.Color;
            }
            else
            {
                // initialize value
                InterlayerLength = UnitsManager.ConvertLengthFrom(1200.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                InterlayerWidth  = UnitsManager.ConvertLengthFrom(1000.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                Thickness        = UnitsManager.ConvertLengthFrom(1.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                Weight           = UnitsManager.ConvertMassFrom(1.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                Color            = Color.Beige;
            }
            // disable Ok button
            UpdateStatus(string.Empty);

            // units
            UnitsManager.AdaptUnitLabels(this);
        }
Ejemplo n.º 8
0
        public FormNewPallet(Document document, PalletProperties palletProperties)
            : base(document, palletProperties)
        {
            InitializeComponent();

            // fill type combo
            cbType.Items.AddRange(PalletData.TypeNames);
            // initialize data
            if (null != palletProperties)
            {
                PalletTypeName = palletProperties.TypeName;
                PalletLength   = palletProperties.Length;
                PalletWidth    = palletProperties.Width;
                PalletHeight   = palletProperties.Height;
                Weight         = palletProperties.Weight;
                PalletColor    = palletProperties.Color;
                AdmissibleLoad = palletProperties.AdmissibleLoadWeight;
            }
            else
            {
                // set selected item
                PalletTypeName = Properties.Settings.Default.PalletTypeName;
                OnPalletTypeChanged(this, null);
            }
            // set unit labels
            UnitsManager.AdaptUnitLabels(this);
        }
 /// <summary>
 /// Default constructor used for creating analysis
 /// </summary>
 public FormNewAnalysisHCylinder(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
 }
 /// <summary>
 /// Constructor used when editing an existing analysis
 /// </summary>
 /// <param name="document">Parent document</param>
 /// <param name="truckAnalysis">Truck analysis</param>
 public FormNewTruckAnalysis(Document document, TruckAnalysis truckAnalysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // set truck analysis ref
     _truckAnalysis = truckAnalysis;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// constructor takes document as argument
 /// </summary>
 public FormOptimizeCase(DocumentSB document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // document
     _document = document;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Constructor used while browsing/editing case analysis
 /// </summary>
 /// <param name="document">Document</param>
 /// <param name="caseAnalysis">Case analysis</param>
 public FormNewCaseAnalysis(Document document, BoxCasePalletAnalysis caseAnalysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document     = document;
     _caseAnalysis = caseAnalysis;
 }
Ejemplo n.º 13
0
        public FormNewPalletLabel(Document doc, PalletLabelProperties item)
            : base(doc, item)
        {
            InitializeComponent();

            UpdateStatus(string.Empty);
            // units
            UnitsManager.AdaptUnitLabels(this);
        }
Ejemplo n.º 14
0
 public FormNewAnalysisBundleCase(Document document, BoxCaseAnalysis analysis)
     : base(document, analysis)
 {
     InitializeComponent();
     // units
     UnitsManager.AdaptUnitLabels(this);
     // analysis
     _analysis = analysis;
 }
Ejemplo n.º 15
0
        /// <summary>
        /// FormNewBox constructor used when defining a new BoxProperties item
        /// </summary>
        /// <param name="document">Document in which the BoxProperties item is to be created</param>
        /// <param name="mode">Mode is either Mode.MODE_CASE or Mode.MODE_BOX</param>
        public FormNewBox(Document document, Mode mode)
        {
            InitializeComponent();
            // set unit labels
            UnitsManager.AdaptUnitLabels(this);
            // save document reference
            _document = document;
            // mode
            _mode = mode;

            switch (_mode)
            {
            case Mode.MODE_CASE:
                tbName.Text           = _document.GetValidNewTypeName(Resources.ID_CASE);
                nudLength.Value       = (decimal)UnitsManager.ConvertLengthFrom(400.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudWidth.Value        = (decimal)UnitsManager.ConvertLengthFrom(300.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudHeight.Value       = (decimal)UnitsManager.ConvertLengthFrom(200.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideLength.Value = nudLength.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideWidth.Value  = nudWidth.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideHeight.Value = nudHeight.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudTapeWidth.Value    = (decimal)UnitsManager.ConvertLengthFrom(50, UnitsManager.UnitSystem.UNIT_METRIC1);
                cbTapeColor.Color     = Color.Beige;
                break;

            case Mode.MODE_BOX:
                tbName.Text           = _document.GetValidNewTypeName(Resources.ID_BOX);
                nudLength.Value       = (decimal)UnitsManager.ConvertLengthFrom(120.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudWidth.Value        = (decimal)UnitsManager.ConvertLengthFrom(60.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudHeight.Value       = (decimal)UnitsManager.ConvertLengthFrom(30.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideLength.Value = nudLength.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideWidth.Value  = nudWidth.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                nudInsideHeight.Value = nudHeight.Value - (decimal)UnitsManager.ConvertLengthFrom(6.0, UnitsManager.UnitSystem.UNIT_METRIC1);
                break;

            default:
                break;
            }
            // description (same as name)
            tbDescription.Text = tbName.Text;
            // color : all faces set together / face by face
            chkAllFaces.Checked = false;
            chkAllFaces_CheckedChanged(this, null);
            // set colors
            for (int i = 0; i < 6; ++i)
            {
                _faceColors[i] = _mode == Mode.MODE_BOX ? Color.Turquoise : Color.Chocolate;
            }
            // set textures
            _textures = new List <Pair <HalfAxis.HAxis, Texture> >();
            // set default face
            cbFace.SelectedIndex = 0;
            // net weight
            NetWeight = new OptDouble(false, UnitsManager.ConvertMassFrom(0.0, UnitsManager.UnitSystem.UNIT_METRIC1));
            // disable Ok button
            UpdateButtonOkStatus();
        }
        /// <summary>
        /// constructor
        /// </summary>
        public DockContentECTAnalysis(DocumentSB document, ECTAnalysis ectAnalysis)
        {
            _document    = document;
            _ectAnalysis = ectAnalysis;
            _ectAnalysis.AddListener(this);

            InitializeComponent();
            // set unit labels
            UnitsManager.AdaptUnitLabels(this);
        }
Ejemplo n.º 17
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="document">Parent document</param>
 public FormNewBoxCaseAnalysis(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     // name
     tbName.Text        = _document.GetValidNewAnalysisName(Resources.ID_ANALYSIS);
     tbDescription.Text = tbName.Text;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Constructor used while browsing/editing existing analysis
 /// </summary>
 /// <param name="document">Parent document</param>
 /// <param name="analysis">Analysis</param>
 public FormNewBoxCaseAnalysis(Document document, BoxCaseAnalysis analysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     _analysis = analysis;
     // set caption text
     Text = string.Format(Properties.Resources.ID_EDIT, _analysis.Name);
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Default constructor used for creating analysis
 /// </summary>
 public FormNewAnalysisCylinder(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     // update interlayer UI
     onInterlayerChecked(this, null);
     onInterlayerAntiSlipChecked(this, null);
 }
Ejemplo n.º 20
0
 /// <summary>
 /// constructor (from existing BoxProperties)
 /// </summary>
 public FormEditBitmaps(BoxProperties boxProperties)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // set internal box properties
     _boxProperties = boxProperties;
     // get textures
     _textures = _boxProperties.TextureListCopy;
     // set default face
     cbFace.SelectedIndex = 0;
 }
Ejemplo n.º 21
0
 /// <summary>
 /// constructor (from length, width, height)
 /// </summary>
 public FormEditBitmaps(double length, double width, double height, Color[] faceColors, List <Pair <HalfAxis.HAxis, Texture> > textures)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // set internal box properties
     _boxProperties = new BoxProperties(null, length, width, height);
     _boxProperties.SetAllColors(faceColors);
     // get textures
     _textures = textures;
     // set default face
     cbFace.SelectedIndex = 0;
 }
Ejemplo n.º 22
0
 public FormNewPallet(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     // initialize type combo
     cbType.Items.AddRange(PalletData.TypeNames);
     // set selected item
     PalletTypeName = Properties.Settings.Default.PalletTypeName;
     // initialize dimensions
     onPalletTypeChanged(this, null);
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Constructor used while browsing/editing existing analysis
 /// </summary>
 public FormNewAnalysisCylinder(Document document, CylinderPalletAnalysis analysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     _analysis = analysis;
     // set caption text
     Text = string.Format(Properties.Resources.ID_EDIT, _analysis.Name);
     // update interlayer UI
     onInterlayerChecked(this, null);
     onInterlayerAntiSlipChecked(this, null);
 }
Ejemplo n.º 24
0
 public FormNewAnalysisBundle(Document document, CasePalletAnalysis analysis)
     : base(document, analysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     _analysis = analysis;
     // set caption text
     if (null != _analysis)
     {
         Text = string.Format(Properties.Resources.ID_EDIT, _analysis.Name);
     }
 }
Ejemplo n.º 25
0
 public FormNewBundle(Document document)
     : base(document, null)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // initialize value
     BundleLength  = UnitsManager.ConvertLengthFrom(400.0, UnitsManager.UnitSystem.UNIT_METRIC1);
     BundleWidth   = UnitsManager.ConvertLengthFrom(300.0, UnitsManager.UnitSystem.UNIT_METRIC1);
     UnitThickness = UnitsManager.ConvertLengthFrom(5.0, UnitsManager.UnitSystem.UNIT_METRIC1);
     NoFlats       = 10;
     Color         = Color.LightGray;
     // disable Ok buttons
     UpdateStatus(string.Empty);
 }
Ejemplo n.º 26
0
 /// <summary>
 /// constructor (from length, width, height)
 /// </summary>
 public FormEditBitmaps(double length, double width, double height, Color[] faceColors)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // set internal box properties
     _boxProperties = new BoxProperties(null, length, width, height);
     _boxProperties.SetAllColors(faceColors);
     // get textures
     _textures = _boxProperties.TextureListCopy;
     // set default face
     cbFace.SelectedIndex = 0;
     // set horizontal angle
     trackBarHorizAngle.Value = 225;
 }
Ejemplo n.º 27
0
 public FormNewInterlayer(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     // name / description
     tbName.Text        = _document.GetValidNewTypeName(Resources.ID_INTERLAYER);
     tbDescription.Text = tbName.Text;
     // initialize value
     InterlayerLength = UnitsManager.ConvertLengthFrom(1200.0, UnitsManager.UnitSystem.UNIT_METRIC1);
     InterlayerWidth  = UnitsManager.ConvertLengthFrom(1000.0, UnitsManager.UnitSystem.UNIT_METRIC1);
     // disable Ok button
     UpdateButtonOkStatus();
 }
Ejemplo n.º 28
0
        /// <summary>
        /// FormNewBox constructor used to edit existing boxes
        /// </summary>
        /// <param name="document">Document that contains the edited box</param>
        /// <param name="boxProperties">Edited box</param>
        public FormNewBox(Document document, BoxProperties boxProperties)
            : base(document, boxProperties)
        {
            InitializeComponent();
            if (!DesignMode)
            {
                // set unit labels
                UnitsManager.AdaptUnitLabels(this);
                // save document reference
                _mode = boxProperties.HasInsideDimensions ? Mode.CASE : Mode.BOX;
                // set colors
                for (int i = 0; i < 6; ++i)
                {
                    _faceColors[i] = boxProperties.Colors[i];
                }
                // set textures
                _textures = boxProperties.TextureListCopy;
                // set caption text
                Text = string.Format(Properties.Resources.ID_EDIT, boxProperties.Name);
                // initialize value
                uCtrlDimensionsOuter.ValueX  = boxProperties.Length;
                uCtrlDimensionsOuter.ValueY  = boxProperties.Width;
                uCtrlDimensionsOuter.ValueZ  = boxProperties.Height;
                uCtrlDimensionsInner.Value   = new Vector3D(boxProperties.InsideLength, boxProperties.InsideWidth, boxProperties.InsideHeight);
                uCtrlDimensionsInner.Checked = boxProperties.HasInsideDimensions;
                // weight
                vcWeight.Value = boxProperties.Weight;
                // net weight
                uCtrlNetWeight.Value = boxProperties.NetWeight;
                // max weight
                uCtrlMaxWeight.Value = boxProperties.MaxWeight;
                // color : all faces set together / face by face
                chkAllFaces.Checked = boxProperties.UniqueColor;
                OnAllFacesColorCheckedChanged(this, null);
                // tape
                uCtrlTapeWidth.Value = boxProperties.TapeWidth;
                cbTapeColor.Color    = boxProperties.TapeColor;
                // set default face
                cbFace.SelectedIndex = 0;
                // set StrapperSet
                StrapperSet = boxProperties.StrapperSet.Clone();
                ctrlStrapperSet.StrapperSet = StrapperSet;

                // disable Ok button
                UpdateStatus(string.Empty);
            }
        }
Ejemplo n.º 29
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="document"></param>
 public FormNewAnalysisLegacy(Document document)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     // name / description
     tbName.Text        = document.GetValidNewAnalysisName(Resources.ID_ANALYSIS);
     tbDescription.Text = tbName.Text;
     // update combo boxes
     onInterlayerChecked(this, null);
     onAntiSlipInterlayerChecked(this, null);
     onPalletCornersChecked(this, null);
     onPalletCapChecked(this, null);
     onPalletFilmChecked(this, null);
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Constructor used while browsing/editing existing analysis
 /// </summary>
 /// <param name="document">Parent document</param>
 /// <param name="analysis">Analysis</param>
 public FormNewAnalysisLegacy(Document document, CasePalletAnalysis analysis)
 {
     InitializeComponent();
     // set unit labels
     UnitsManager.AdaptUnitLabels(this);
     // save document reference
     _document = document;
     _analysis = analysis;
     // set caption text
     Text = string.Format(Properties.Resources.ID_EDIT, _analysis.Name);
     // update combo boxes
     onInterlayerChecked(this, null);
     onAntiSlipInterlayerChecked(this, null);
     onPalletCornersChecked(this, null);
     onPalletCapChecked(this, null);
     onPalletFilmChecked(this, null);
 }