public void AddView(BinderViewBase view) { view.Controller = this; _views.Add(view); OnModelModified(); }
public void AddBinding(string propertyName, BinderViewBase view, ViewConverterBase converter) { view.Converter = converter; EnsureControllerExistsForProperty(propertyName); BinderController controller = _properties[propertyName]; controller.AddView(view); if (_boundTo != null) controller.ConnectBoundToObject(_boundTo); }
public void OnViewModified(BinderViewBase view, object newValue) { _model.SetValue(newValue); #if DEBUG if (_tracingEnabled) { Console.WriteLine(string.Format("Binder, View -> Model ({0}), Value \"{1}\".", _model.GetDescriptionForTracing(), newValue)); } #endif OnModelModified(); }
public void AddBinding(string propertyName, BinderViewBase view) { AddBinding(propertyName, view, ViewConverterBase.Null); }