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

            CenteredTextWidget other = (CenteredTextWidget)otherWidget;

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

            ImageWidget other = (ImageWidget)otherWidget;

            return ImageId == other.ImageId;
        }
Пример #5
0
 public override bool Equals(Widget otherWidget) 
 {
     return (otherWidget.Type == typeof(ErrorWidget));
 }