SecondsDataContext.cs 618 B

12345678910111213141516171819202122232425
  1. using System.ComponentModel;
  2. namespace ShowSeconds.ViewModel
  3. {
  4. public class SecondsDataContext : INotifyPropertyChanged
  5. {
  6. private string seconds;
  7. public string Seconds
  8. {
  9. set
  10. {
  11. seconds = value;
  12. OnPropertyChanged("Seconds");
  13. }
  14. get { return seconds; }
  15. }
  16. public event PropertyChangedEventHandler PropertyChanged;
  17. private void OnPropertyChanged(string propertyName)
  18. {
  19. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  20. }
  21. }
  22. }