Esempio n. 1
0
        public OverlayBindingFactory <TGoogleMapOverlay> For <TDataItem>(Action <OverlayBindingBuilder <TGoogleMapOverlay, TDataItem> > action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            Binder = new OverlayBinding <TGoogleMapOverlay, TDataItem>();
            var builder = new OverlayBindingBuilder <TGoogleMapOverlay, TDataItem>((OverlayBinding <TGoogleMapOverlay, TDataItem>)Binder);

            action(builder);

            return(this);
        }
Esempio n. 2
0
 public OverlayBindingBuilder(OverlayBinding <TGoogleMapOverlay, TDataItem> overlayBinding)
 {
     bindingComponent = overlayBinding;
 }