优化代码

This commit is contained in:
BookerLiu
2022-09-01 15:23:44 +08:00
parent e82af431b5
commit d5e0dc98db
14 changed files with 576 additions and 83 deletions

View File

@@ -0,0 +1,25 @@
using System.ComponentModel;
namespace ShowSeconds.ViewModel
{
public class SecondsDataContext : INotifyPropertyChanged
{
private string seconds;
public string Seconds
{
set
{
seconds = value;
OnPropertyChanged("Seconds");
}
get { return seconds; }
}
public event PropertyChangedEventHandler PropertyChanged;
private void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}