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