public override bool Equals(object o) { if (!(o is BackgroundPage)) { return(false); } BackgroundPage v = o as BackgroundPage; if (!Enabled.Equals(v.Enabled)) { return(false); } if (!File.Equals(v.File)) { return(false); } if (!FitToPage.Equals(v.FitToPage)) { return(false); } if (!Opacity.Equals(v.Opacity)) { return(false); } if (!Repetition.Equals(v.Repetition)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is Watermark)) { return(false); } Watermark v = o as Watermark; if (!Enabled.Equals(v.Enabled)) { return(false); } if (!File.Equals(v.File)) { return(false); } if (!FitToPage.Equals(v.FitToPage)) { return(false); } if (!Opacity.Equals(v.Opacity)) { return(false); } if (!Repetition.Equals(v.Repetition)) { return(false); } return(true); }