private static int GetNormalHeight(WindowPlacementUtil.WINDOWPLACEMENT placement) { return(placement.normalPosition.Bottom - placement.normalPosition.Top); }
private static int GetNormalWidth(WindowPlacementUtil.WINDOWPLACEMENT placement) { return(placement.normalPosition.Right - placement.normalPosition.Left); }
private static bool AreSameNormalSize(WindowPlacementUtil.WINDOWPLACEMENT placement1, WindowPlacementUtil.WINDOWPLACEMENT placement2) { return(GetNormalHeight(placement1) == GetNormalHeight(placement2) && GetNormalWidth(placement1) == GetNormalWidth(placement2)); }