コード例 #1
0
 public static bool IsUniform(Thickness thickness)
 {
     if (DoubleUtilHelper.AreClose(thickness.Left, thickness.Top) && DoubleUtilHelper.AreClose(thickness.Left, thickness.Right))
     {
         return(DoubleUtilHelper.AreClose(thickness.Left, thickness.Bottom));
     }
     return(false);
 }
コード例 #2
0
 public static bool IsClose(Thickness thickness0, Thickness thickness1)
 {
     if (DoubleUtilHelper.AreClose(thickness0.Left, thickness1.Left) &&
         DoubleUtilHelper.AreClose(thickness0.Top, thickness1.Top) &&
         DoubleUtilHelper.AreClose(thickness0.Right, thickness1.Right))
     {
         return(DoubleUtilHelper.AreClose(thickness0.Bottom, thickness1.Bottom));
     }
     return(false);
 }