Esempio n. 1
0
        public void AddView(BinderViewBase view)
        {
            view.Controller = this;
            _views.Add(view);

            OnModelModified();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 public void AddBinding(string propertyName, BinderViewBase view)
 {
     AddBinding(propertyName, view, ViewConverterBase.Null);
 }