Beispiel #1
0
        void _ptu_PositionChanged(object sender, PositionArgs args)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new PositionChangedDelegate(_ptu_PositionChanged), sender, args);
                return;
            }

            lblPan.Text = args.Pos1.ToString("F3");
            lblTilt.Text = args.Pos2.ToString("F3");
        }
Beispiel #2
0
 private void InvokePositionChanged(PositionArgs args)
 {
     PositionChangedDelegate position = PositionChanged;
     if (position != null) position(this, args);
 }
Beispiel #3
0
        void Instance_InPositionChanged(object sender, PositionArgs args)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new PositionChangedDelegate(Instance_InPositionChanged), sender, args);
                return;
            }

            if (args.InPos)
            {
                AllowMove(true);
            }
            else
                lblPan.BackColor = lblTilt.BackColor = Color.Red;
        }