private void SetLabel(LabelPositon position)
        {
            btnRight.Enabled = false;
            btnLeft.Enabled  = false;

            lblRightDistance.Visible = true;
            lblLeftDistance.Visible  = true;

            if (position == LabelPositon.Center)
            {
                pb4x4.Location = _smallLabelCenterLocation;
                pb4x6.Location = _largeLabelCenterLocation;
                pb4x6.Location = _largeLabelCenterLocation;
            }
            else if (position == LabelPositon.Edge)
            {
                pb4x4.Location           = _labelEdgeLocation;
                pb4x6.Location           = new Point(310, 3);
                pb6x4.Location           = new Point(230, 3);
                lblRightDistance.Visible = false;
                lblLeftDistance.Visible  = false;
            }
            else
            {
                pb4x4.Location   = _smallLabelCenterLocation;
                pb4x6.Location   = _largeLabelCenterLocation;
                pb6x4.Location   = _rotatedLabelCenterLocation;
                btnRight.Enabled = true;
                btnLeft.Enabled  = true;
            }
        }
Example #2
0
        public void ChangeLabelPosition(LabelPositon position)
        {
            var nextLabel = CurrentLabel.Copy();

            nextLabel.Position = position;

            CurrentLabel = nextLabel;

            OnLabelPositionChanged(new LabelServiceEventArgs()
            {
                Label = nextLabel
            });
        }
Example #3
0
 public Label(LabelSize lableSize, LabelPositon lablePositon)
 {
     Size     = lableSize;
     Position = lablePositon;
 }