public override bool Equals(Widget otherWidget) { if (Type != otherWidget.Type) { return false; } TimetableWidget other = (TimetableWidget)otherWidget; return StopCode == other.StopCode && PollingIntervalInSeconds == other.PollingIntervalInSeconds && OperatorName == other.OperatorName; }
public override bool Equals(Widget otherWidget) { if (this.Type != otherWidget.Type) { return false; } CenteredTextWidget other = (CenteredTextWidget)otherWidget; return Text == other.Text; }
public abstract bool Equals(Widget otherWidget);
public override bool Equals(Widget otherWidget) { if (Type != otherWidget.Type) { return false; } ImageWidget other = (ImageWidget)otherWidget; return ImageId == other.ImageId; }
public override bool Equals(Widget otherWidget) { return (otherWidget.Type == typeof(ErrorWidget)); }