private void OnPropertyChanged(string name) { if (PropertyChanged!=null) PropertyChanged(this, new PropertyChangedEventArgs(name)); } }