示例#1
0
        protected bool Set <T>(ref T storage, ref T value, [CallerMemberName] string propertyName = "")
        {
            if (!NotificationObject.IsEquals(ref storage, ref value))
            {
                storage = value;
                this.RaisePropertyChanged(propertyName);

                return(true);
            }

            return(false);
        }
示例#2
0
        protected bool Set <T>(ref T storage, ref T value, PropertyChangedEventArgs e)
        {
            if (!NotificationObject.IsEquals(ref storage, ref value))
            {
                storage = value;
                this.RaisePropertyChanged(e);

                return(true);
            }

            return(false);
        }