public static bool dbugIsEq(dbugPropCheckReport rep, CssPaddingFeature prop1, CssPaddingFeature prop2) { int inCount = rep.Count; rep.Check("Left", CssLength.IsEq(prop1.Left, prop2.Left)); rep.Check("Top", CssLength.IsEq(prop1.Top, prop2.Top)); rep.Check("Right", CssLength.IsEq(prop1.Right, prop2.Right)); rep.Check("Bottom", CssLength.IsEq(prop1.Bottom, prop2.Bottom)); return inCount == rep.Count; }
public static bool dbugIsEq(dbugPropCheckReport rep, CssBackgroundFeature prop1, CssBackgroundFeature prop2) { if (prop1 == prop2) { return true; } //---------------- int inMsgCount = rep.Count; rep.Check("BackgroundColor", prop1.BackgroundColor == prop2.BackgroundColor); rep.Check("BackgroundGradient", prop1.BackgroundGradient == prop2.BackgroundGradient); rep.Check("BackgroundGradientAngle", prop1.BackgroundGradientAngle == prop2.BackgroundGradientAngle); if (!(prop1.BackgroundImageBinder == null && prop2.BackgroundImageBinder == null)) { if (prop1.BackgroundImageBinder != prop2.BackgroundImageBinder) { if (prop1.BackgroundImageBinder.ImageSource != prop2.BackgroundImageBinder.ImageSource) { rep.Check("BackgroundImageBinder", prop1.BackgroundImageBinder == prop2.BackgroundImageBinder); } } } rep.Check("BackgroundPosition", prop1.BackgroundPosition == prop2.BackgroundPosition); rep.Check("BackgroundPosX", CssLength.IsEq(prop1.BackgroundPosX, prop2.BackgroundPosX)); rep.Check("BackgroundPosY", CssLength.IsEq(prop1.BackgroundPosY, prop2.BackgroundPosY)); rep.Check("CssBackgroundRepeat", prop1.BackgroundRepeat == prop2.BackgroundRepeat); return inMsgCount == rep.Count; }
public static bool dbugIsEq(dbugPropCheckReport rep, CssFontFeature prop1, CssFontFeature prop2) { if (prop1 == prop2) { return true; } //---------------- int inCount = rep.Count; rep.Check("FontFamily", prop1.FontFamily == prop2.FontFamily); rep.Check("FontSize", CssLength.IsEq(prop1.FontSize, prop2.FontSize)); rep.Check("FontStyle", prop1.FontStyle == prop2.FontStyle); rep.Check("FontVariant", prop1.FontVariant == prop2.FontVariant); rep.Check("FontWeight", prop1.FontWeight == prop2.FontWeight); return inCount == rep.Count; }
public static bool dbugIsEq(dbugPropCheckReport rep, CssCornerFeature prop1, CssCornerFeature prop2) { int inCount = rep.Count; rep.Check("NERadius", CssLength.IsEq(prop1.NERadius, prop2.NERadius)); rep.Check("NWRadius", CssLength.IsEq(prop1.NWRadius, prop2.NWRadius)); rep.Check("SERadius", CssLength.IsEq(prop1.SERadius, prop2.SERadius)); rep.Check("SWRadius", CssLength.IsEq(prop1.SWRadius, prop2.SWRadius)); return inCount == rep.Count; }
public static bool dbugIsEq(dbugPropCheckReport rep, CssListFeature prop1, CssListFeature prop2) { int inCount = rep.Count; rep.Check("ListStyleType", prop1.ListStyleType == prop2.ListStyleType); rep.Check("ListStyleType", prop1.ListStyleImage == prop2.ListStyleImage); rep.Check("ListStyleType", prop1.ListStylePosition == prop2.ListStylePosition); rep.Check("ListStyleType", prop1.ListStyle == prop2.ListStyle); return inCount == rep.Count; }
public static bool dbugIsEq(dbugPropCheckReport rep, CssBorderFeature prop1, CssBorderFeature prop2) { int inCount = rep.Count; rep.Check("LeftWidth", CssLength.IsEq(prop1.LeftWidth, prop2.LeftWidth)); rep.Check("TopWidth", CssLength.IsEq(prop1.TopWidth, prop2.TopWidth)); rep.Check("RightWidth", CssLength.IsEq(prop1.RightWidth, prop2.RightWidth)); rep.Check("BottomWidth", CssLength.IsEq(prop1.BottomWidth, prop2.BottomWidth)); rep.Check("LeftStyle", prop1.LeftStyle == prop2.LeftStyle); rep.Check("TopStyle", prop1.TopStyle == prop2.TopStyle); rep.Check("RightStyle", prop1.RightStyle == prop2.RightStyle); rep.Check("BottomStyle", prop1.BottomStyle == prop2.BottomStyle); rep.Check("LeftColor", prop1.LeftColor == prop2.LeftColor); rep.Check("TopColor", prop1.TopColor == prop2.TopColor); rep.Check("RightColor", prop1.RightColor == prop2.RightColor); rep.Check("BottomColor", prop1.BottomColor == prop2.BottomColor); rep.Check("BorderCollapse", prop1.BorderCollapse == prop2.BorderCollapse); rep.Check("BorderSpacingH", CssLength.IsEq(prop1.BorderSpacingH, prop2.BorderSpacingH)); rep.Check("BorderSpacingV", CssLength.IsEq(prop1.BorderSpacingV, prop2.BorderSpacingV)); return inCount == rep.Count; }