Exemplo n.º 1
0
        protected void OnPropertyChanged(object sender, string propertyName)
        {
            WhoRised whoRised = new WhoRised(sender, propertyName);

            if (!_whoRisedEventPropertyChanged.Contains(whoRised))
            {
                _whoRisedEventPropertyChanged.Add(whoRised);
                OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
                _whoRisedEventPropertyChanged.Remove(whoRised);
            }
        }
Exemplo n.º 2
0
        protected virtual void OnPropertyChanged(object sender, string propertyName)
        {
            WhoRised whoRised = new WhoRised(sender, propertyName);

            if (!_whoRisedEventPropertyChanged.Contains(whoRised))
            {
                _whoRisedEventPropertyChanged.Add(whoRised);
                //OnPropertyChanged(propertyName);
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
                _whoRisedEventPropertyChanged.Remove(whoRised);
            }
        }