public static Rectangle[] SplitInParts(Rectangle xRec, int Parts, SplitType xSplitType)
        {
            Rectangle[] xOutput = null;
            switch (xSplitType)
            {
            case SplitType.Horizontal:
                xOutput = MyRectangle.SplitHorizontalInParts(xRec, Parts);
                break;

            case SplitType.Vertical:
                break;
            }
            return(xOutput);
        }
        public static Rectangle[] SplitByPercent(Rectangle xRec, int[] Percents, SplitType xSplitType)
        {
            Rectangle[] xOutput = null;
            switch (xSplitType)
            {
            case SplitType.Horizontal:
                xOutput = MyRectangle.SplitHorizontalByPercent(xRec, Percents);
                break;

            case SplitType.Vertical:
                break;
            }
            return(xOutput);
        }
 public static Rectangle Resize(Rectangle xRec, int Difference)
 {
     return(MyRectangle.Resize(xRec, Difference, Difference));
 }