Ejemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            // Graphics3DControl
            graphCtrl.DrawingContainer = this;
            graphCtrl.AngleHoriz       = 270.0;

            if (null != Item)
            {
                PalletLabelProperties palletLabel = Item as PalletLabelProperties;
                Color      = palletLabel.Color;
                Dimensions = palletLabel.Dimensions;
                Weight     = palletLabel.Weight;
                Bitmap     = palletLabel.Bitmap;
            }
            else
            {
                Color      = Color.White;
                Dimensions = new Vector2D(
                    UnitsManager.ConvertLengthFrom(210, UnitsManager.UnitSystem.UNIT_METRIC1),
                    UnitsManager.ConvertLengthFrom(297, UnitsManager.UnitSystem.UNIT_METRIC1));
                Weight = 0.0;
                Bitmap = Resources.PalletLabelDefault;
            }
        }
Ejemplo n.º 2
0
 public PalletLabel(uint pickId, PalletLabelProperties label, BoxPosition boxPosition)
     : base(pickId)
 {
     Dimensions  = label.Dimensions;
     Color       = label.Color;
     Bitmap      = label.Bitmap;
     BoxPosition = boxPosition;
 }
Ejemplo n.º 3
0
        public FormNewPalletLabel(Document doc, PalletLabelProperties item)
            : base(doc, item)
        {
            InitializeComponent();

            UpdateStatus(string.Empty);
            // units
            UnitsManager.AdaptUnitLabels(this);
        }