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;
        }
Beispiel #2
0
        public override bool Equals(Widget otherWidget)
        {
            if (this.Type != otherWidget.Type)
            {
                return false;
            }

            CenteredTextWidget other = (CenteredTextWidget)otherWidget;

            return Text == other.Text;
        }
Beispiel #3
0
 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));
 }