Example #1
0
 /// <summary>
 /// Creates a new PackProperties object
 /// </summary>
 public void CreateNewPackUI()
 {
     using (FormNewPack form = new FormNewPack(this, null)
     {
         Boxes = Boxes.ToList()
     })
     {
         if (DialogResult.OK == form.ShowDialog())
         {
             PackProperties packProperties = CreateNewPack(
                 form.ItemName, form.ItemDescription
                 , form.SelectedPackable
                 , form.Arrangement
                 , form.BoxOrientation, form.RevSolidLayout
                 , form.Wrapper
                 , form.Tray);
             if (form.HasForcedOuterDimensions)
             {
                 packProperties.ForceOuterDimensions(form.OuterDimensions);
             }
             packProperties.StrapperSet = form.StrapperSet;
             packProperties.Bulge       = form.Bulge;
         }
     }
 }
Example #2
0
        /// <summary>
        /// Creates a new PackProperties object
        /// </summary>
        public void CreateNewPackUI()
        {
            FormNewPack form = new FormNewPack(this, null)
            {
                Boxes = Boxes.ToList()
            };

            if (DialogResult.OK == form.ShowDialog())
            {
                PackProperties packProperties = CreateNewPack(
                    form.ItemName, form.ItemDescription
                    , form.SelectedBox
                    , form.Arrangement
                    , form.BoxOrientation
                    , form.Wrapper);
                if (form.HasForcedOuterDimensions)
                {
                    packProperties.ForceOuterDimensions(form.OuterDimensions);
                }
            }
        }