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

            CenteredTextWidget other = (CenteredTextWidget)otherWidget;

            return Text == other.Text;
        }
Example #3
0
 public abstract bool Equals(Widget otherWidget);
Example #4
0
        public override bool Equals(Widget otherWidget)
        {
            if (Type != otherWidget.Type) 
            {
                return false;
            }

            ImageWidget other = (ImageWidget)otherWidget;

            return ImageId == other.ImageId;
        }
Example #5
0
 public override bool Equals(Widget otherWidget) 
 {
     return (otherWidget.Type == typeof(ErrorWidget));
 }