/// <summary> /// Initializes a new instance of the <see cref="CanExecuteChangedEventArgs"/> class. /// </summary> /// <param name="data"> /// The data. /// </param> /// <param name="canExecute"> /// The can execute. /// </param> public CanExecuteChangedEventArgs(BindData data, bool canExecute) { this.Data = data; this.CanExecute = canExecute; }
/// <summary> /// Initializes a new instance of the <see cref="BindingValueChangedEventArgs"/> class. /// </summary> /// <param name="data"> /// The data. /// </param> /// <param name="oldValue"> /// The old value. /// </param> /// <param name="newValue"> /// The new value. /// </param> public BindingValueChangedEventArgs(BindData data, object oldValue, object newValue) { this.Data = data; this.OldValue = oldValue; this.NewValue = newValue; }
private void UpdateViewModelLabelText(BindData data, object o) { var index = (int)o; switch (index) { case 0: data.Target.Value = ((DataWarehouse)data.Source.Source).ControlViewModel1.GetHashCode().ToStringWithoutException(); break; case 1: data.Target.Value = ((DataWarehouse)data.Source.Source).ControlViewModel2.GetHashCode().ToStringWithoutException(); break; default: data.Target.Value = "null"; break; } }