Beispiel #1
0
 protected void OnPropertyChanging(string propertyName)
 {
     PropertyChanging.Raise(this, propertyName);
 }
Beispiel #2
0
 /// <summary>
 /// 触发属性即将修改的通知事件。
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnPropertyChanging(PropertyChangingEventArgs e)
 {
     PropertyChanging.Invoke(this, e);
 }
Beispiel #3
0
 private void OnPropertyChanging(string propertyName)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #4
0
 public virtual void OnPropertyChanging(string propertyName, int fake)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
 public void NotifyChanging(string propertyName)
 => PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 public void OnPropertyChanging(string propertyName, object before)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #7
0
 /// <summary>
 /// Raises all the property changing events
 /// </summary>
 public void RaisePropertyChanging()
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(nameof(Value)));
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(nameof(HasValue)));
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(nameof(IsDefault)));
 }
 protected void RaisePropertyValueChanging(PropertyValueChangingEventArgs args)
 {
     PropertyChanging?.Invoke(this, args);
     PropertyValueChanging?.Invoke(this, args);
 }
Beispiel #9
0
        public virtual void RaisePropertyChanging([CallerMemberName] string?propertyName = null)
        {
            VerifyPropertyName(propertyName);

            PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
        }
 protected void RaisePropertyChanging(PropertyChangingEventArgs eventArgs) => PropertyChanging?.Invoke(this, eventArgs);
Beispiel #11
0
 protected void SetProperty <T>(ref T field, T value, [CallerMemberName] string propertyName = "")
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
     field = value;
     OnPropertyChanged(propertyName);
 }
 public virtual void OnPropertyChanging(PropertyChangingEventArgs propertyArg)
 {
     PropertyChanging?.Invoke(this, propertyArg);
 }
Beispiel #13
0
 public virtual void RaisePropertyChanging(string propertyName)
 {
     VerifyPropertyName(propertyName);
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #14
0
 protected void NotifyPropertyChanging(string propertyName)
 {
     VerifyHasProperty(propertyName);
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #15
0
 private void NotifyChanging([CallerMemberName] string propertyName = "")
 => PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 public virtual void OnPropertyChanging(string propertyName)
 {
     baseNotifyCalled = true;
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #17
0
 protected void RaisePropertyChanging(string propertyName)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #18
0
 public void RaisePropertyChanging(string propertyName = null)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #19
0
 public void RaisePropertyChanging(PropertyChangingEventArgs args)
 {
     PropertyChanging?.Invoke(this, args);
 }
Beispiel #20
0
 //=========================================================================================================
 //=========================================================================================================
 //ACTUALIZA LA INFORMACION DE LA PROPIEDAD CADA QUE SE DECTECTA UN CAMBIO MINIMO
 private void OnPropertyChanged([CallerMemberName] string nombre = "")
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(nombre));
 }
Beispiel #21
0
 protected virtual void RaisePropertyChanging(string propertyName)
 {
     PropertyChanging?.Invoke(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
 }
Beispiel #22
0
 protected void RaiseUpdating([CallerMemberName] string propertyName = null)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
Beispiel #23
0
 /// <inheritdoc/>
 void IReactiveObject.RaisePropertyChanging(PropertyChangingEventArgs args)
 {
     PropertyChanging?.Invoke(this, args);
 }
Beispiel #24
0
 protected virtual void OnPropertyChanging([NotNull] PropertyChangingEventArgs e)
 => PropertyChanging?.Invoke(this, e);
Beispiel #25
0
 public void OnPropertyChanging(string propertyName)
 {
     PropertyChanging?.Invoke(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
 }
Beispiel #26
0
 /// <summary>
 /// Called when [property changing].
 /// </summary>
 /// <param name="methodName">Name of the method.</param>
 public void OnPropertyChanging(string methodName)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(methodName));
 }
Beispiel #27
0
 protected virtual void OnPropertyChanging(string propertyName)
 {
     PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 }
 protected virtual void OnPropertyChanging(object sender, PropertyChangingEventArgs e) => PropertyChanging?.Invoke(sender, e);
Beispiel #29
0
 protected virtual void OnPropertyChanging([CallerMemberName] string propertyName = null)
 => PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
 public virtual void Cambio([CallerMemberName] string propiedad = null)
 {
     PropertyChanging?.Invoke(this, new System.ComponentModel.PropertyChangingEventArgs(propiedad));
 }