コード例 #1
0
ファイル: ObservableObject.cs プロジェクト: qube7/qcomposite
                /// <summary>
                /// Raises the property change notification for the specified <see cref="ObservableObject"/>.
                /// </summary>
                /// <param name="observable">The target observable.</param>
                /// <param name="propertyName">The name of the property that changed.</param>
                public void Raise(ObservableObject observable, string propertyName)
                {
                    if (string.IsNullOrEmpty(propertyName))
                    {
                        observable.OnPropertyChanged(EventArgsCache.ObjectPropertyChanged);

                        return;
                    }

                    observable.ValidateProperty(propertyName);

                    observable.OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
                }