public void UpdateSource() { FailIfDisposed(); var targetItemsSet = GetTargetItemsAsCollection(); _sourceAdapter.SetValue(targetItemsSet); }
public void SetValue(object value) { using (_synchronizationGroup.DisableValueChangedCallbacks()) { _valueAdapter.SetValue(value); } }
private void ForwardValueToTargetIfNotNoValue(object value) { if (value == SettingsConstants.NoValue) { return; } _targetAdapter.SetValue(value); }
public void SetValue(object value) { FailIfDisposed(); if (_valueAdapter == null) { return; } _valueAdapter.SetValue(value); }
public void SetValue(object value) { try { _targetAdapter.SetValue(value); } catch (Exception e) { switch (_exceptionHandler(ValueAdapterAction.SetValue, e)) { case ExceptionHandlerResult.SwallowException: break; case ExceptionHandlerResult.RethrowException: throw; default: throw new ArgumentOutOfRangeException(); } } }
public void SetItems(IEnumerable items) { FailIfDisposed(); _valueAdapter.SetValue(items.OfType <object>().FirstOrDefault()); }
public void SetValue(object value) { FailIfDisposed(); _sourceItemsSourceAdapter.SetValue(value as IEnumerable); }
public void SetValue(object source) { var convertedSource = _converter.ConvertSource(source); _targetAdapter.SetValue(convertedSource); }