Пример #1
0
 static void SetCoordinateRectangle(Rectangle rectangle, int MinLeftDownUpX, int MinLeftRightDownY, int MaxRightDownUpX, int MaxLeftRightUpY)
 {
     rectangle.SetLeftDownPoint(MinLeftDownUpX, MinLeftRightDownY);
     rectangle.SetRightDownPoint(MaxRightDownUpX, MinLeftRightDownY);
     rectangle.SetRightUpPoint(MaxRightDownUpX, MaxLeftRightUpY);
     rectangle.SetLeftUpPoint(MinLeftDownUpX, MaxLeftRightUpY);
     rectangle.SetWidth(rectangle);
     rectangle.SetHeight(rectangle);
 }