示例#1
0
        protected virtual void OnLabelPositionChanged(LabelServiceEventArgs e)
        {
            EventHandler <LabelServiceEventArgs> handler = LabelPositionChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void _labelService_LabelSizeChanged(object sender, LabelServiceEventArgs e)
        {
            Debug.WriteLine($"Label Size selected = {e.Label.Size}");

            if (e.Label.Size == LabelSize.dimension4x4)
            {
                pb4x4.Visible = true;
                pb4x6.Visible = false;
                pb6x4.Visible = false;
            }
            else
            {
                pb4x4.Visible = false;
                pb4x6.Visible = !_isRotated;
                pb6x4.Visible = _isRotated;
            }

            SetCurrentBox();
            SetLableDistance();
        }
 private void _labelService_LabelPositionChanged(object sender, LabelServiceEventArgs e)
 {
     SetLabel(e.Label.Position);
 }