public static bool UpdatePos(int X, int Y, int DeltaX, int DeltaY, ref Point Pt, bool EndPos) { int num1 = Pt.X; int num2 = Pt.Y; bool flag1 = SortList.UpdatePos(X, Y, DeltaX, DeltaY, ref num1, ref num2, EndPos); Pt.X = num1; Pt.Y = num2; return(flag1); }
protected virtual bool UpdatePosition(IRange Range, int X, int Y, int DeltaX, int DeltaY) { Point point1 = Range.StartPoint; bool flag1 = false; if (SortList.UpdatePos(X, Y, DeltaX, DeltaY, ref point1, false)) { Range.StartPoint = point1; flag1 = true; } point1 = Range.EndPoint; if (SortList.UpdatePos(X, Y, DeltaX, DeltaY, ref point1, true)) { Range.EndPoint = point1; flag1 = true; } return(flag1); }