Ejemplo n.º 1
0
        public void OnCursorMove(PointSubj _pointSubj, double _y, Color _color)
        {
            if (_pointSubj == null)
            {
                label2.Text = null;
                return;
            }
            double s = RK.ST.cDef(Tp).result.MMByMeas(_pointSubj.iZ.Value, _pointSubj.iS.Value, _pointSubj.iM.Value);

            if (range != 0)
            {
                label2.Text = string.Format("З:{0} C:{1}, У:{2}%, P:{3}мм",
                                            _pointSubj.iZ + 1,
                                            _pointSubj.iM.ToString(),
                                            _y.ToString("0.###"),
                                            s.ToString("0.#"));
            }
            else
            {
                label2.Text = string.Format("C:{0}, У:{1}%, P:{2}мм",
                                            _pointSubj.iM.ToString(),
                                            _y.ToString("0.###"),
                                            s.ToString("0.#"));
            }
            label2.BackColor = _color;
        }
Ejemplo n.º 2
0
 public void OnCursorMove(PointSubj _pointSubj, double _y, Color _color)
 {
     if (_pointSubj == null)
     {
         label2.Text = null;
         return;
     }
     label2.Text      = string.Format("C:{0}, У:{1}", _pointSubj.iM.ToString(), _y.ToString("0.###"));
     label2.BackColor = _color;
     if (OnCursor != null)
     {
         OnCursor(_pointSubj != null);
     }
 }