public static Rectangle ToRectangle(this WndScreenRect value) { return(new Rectangle( value.UpperLeft.X, value.UpperLeft.Y, value.BottomRight.X - value.UpperLeft.X, value.BottomRight.Y - value.UpperLeft.Y)); }
private WndScreenRect ParseScreenRectValue() { var result = new WndScreenRect(); ParseAttributes(new Dictionary <string, Action> { { "UPPERLEFT", () => result.UpperLeft = ParsePoint() }, { "BOTTOMRIGHT", () => result.BottomRight = ParsePoint() }, { "CREATIONRESOLUTION", () => result.CreationResolution = ParseSize() }, }); return(result); }