Пример #1
0
        private void SetMarkers()
        {
            Rect bounds = GetFieldBounds();

            ShapeUtils.SetMarker(blMark, bounds.Left, bounds.Bottom);
            ShapeUtils.SetMarker(tlMark, bounds.Left, bounds.Top);
            ShapeUtils.SetMarker(trMark, bounds.Right, bounds.Top);
            ShapeUtils.SetMarker(brMark, bounds.Right, bounds.Bottom);
        }
Пример #2
0
 private void SetMarkers()
 {
     ShapeUtils.SetMarker(blMark, _bounds.Left, _bounds.Bottom);
     ShapeUtils.SetMarker(tlMark, _bounds.Left, _bounds.Top);
     ShapeUtils.SetMarker(trMark, _bounds.Right, _bounds.Top);
     ShapeUtils.SetMarker(brMark, _bounds.Right, _bounds.Bottom);
     ShapeUtils.SetMarker(cMark, (_bounds.Left + _bounds.Right) / 2,
                          (_bounds.Top + _bounds.Bottom) / 2);
 }
Пример #3
0
 void SetMarkers()
 {
     ShapeUtils.SetMarker(selMarker1, line.X1, line.Y1);
     ShapeUtils.SetMarker(selMarker2, line.X2, line.Y2);
 }