Пример #1
0
        public MapObjectBindingFactory <TMapObject> For <TDataItem>(Action <MapObjectBindingBuilder <TMapObject, TDataItem> > action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            Binder = new MapObjectBinding <TMapObject, TDataItem>();
            var builder = new MapObjectBindingBuilder <TMapObject, TDataItem>((MapObjectBinding <TMapObject, TDataItem>)Binder);

            action(builder);

            return(this);
        }
Пример #2
0
 public MapObjectBindingBuilder(MapObjectBinding <TMapObject, TDataItem> mapObjectBinding)
 {
     bindingComponent = mapObjectBinding;
 }