Beispiel #1
0
        void ReleaseDesignerOutlets()
        {
            if (DateText != null)
            {
                DateText.Dispose();
                DateText = null;
            }

            if (HeadlineText != null)
            {
                HeadlineText.Dispose();
                HeadlineText = null;
            }

            if (NewsImage != null)
            {
                NewsImage.Dispose();
                NewsImage = null;
            }

            if (PreambleText != null)
            {
                PreambleText.Dispose();
                PreambleText = null;
            }

            if (SourceLable != null)
            {
                SourceLable.Dispose();
                SourceLable = null;
            }
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;
                hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0;

                hash = hash * 29 + Source.GetHashCode();
                hash = hash * 29 + HeadlineId.GetHashCode();
                hash = hash * 29 + Symbols.GetHashCode();
                hash = hash * 29 + Timestamp.GetHashCode();
                hash = hash * 29 + HeadlineText.GetHashCode();
                return(hash);
            }
        }