using System; namespace Podder.Model { /// <summary> /// Assists the UI in adding a new Podcast to a PodcastCollection. /// This is more of a ViewModel class than a Model class. /// </summary> public class NewPodcastInfo : BindableObject { #region Data string _feedUrl; string _statusMessage; #endregion // Data #region Constructor internal NewPodcastInfo() { } #endregion // Constructor #region Properties #region FeedUrl public string FeedUrl { get { return _feedUrl; } set { if (value == _feedUrl) return; _feedUrl = value; base.RaisePropertyChanged("HasFeedUrl"); base.RaisePropertyChanged("FeedUrl"); if (this.HasStatusMessage) this.StatusMessage = null; } } public bool HasFeedUrl { get { return !String.IsNullOrEmpty(this.FeedUrl); } } #endregion // FeedUrl #region StatusMessage public string StatusMessage { get { return _statusMessage; } set { if (value == _statusMessage) return; _statusMessage = value; base.RaisePropertyChanged("HasStatusMessage"); base.RaisePropertyChanged("StatusMessage"); } } public bool HasStatusMessage { get { return !String.IsNullOrEmpty(this.StatusMessage); } } #endregion // StatusMessage #endregion // Properties } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)