Exemplo n.º 1
0
        public MobileBridge(Control bridgeTo)
        {
            _bridgeTo = bridgeTo;
            _cssManager = new CssManager(bridgeTo);

            _bridgeTo.PreRender += delegate(object sender, EventArgs e) { this.PreRender(); };
            _bridgeTo.Load += delegate(object sender, EventArgs e) {
                _bridgeTo.Page.Unload += delegate(object s, EventArgs ea) { this.RenderMeta(); };
            };

            this.SetDefaults();
        }
Exemplo n.º 2
0
        public JuiceWidgetState(IWidget widget)
        {
            Widget = widget;

            foreach(EventDescriptor widgetEvent in TypeDescriptor.GetEvents(Widget.GetType()).OfType<EventDescriptor>()) {

                WidgetEventAttribute attribute = widgetEvent.Attributes.OfType<WidgetEventAttribute>().SingleOrDefault();

                if(attribute != null && attribute.DataChangedHandler == true) {
                    _dataChangedEvent = new WidgetEvent(attribute.Name);
                    break;
                }
            }

            _cssManager = new CssManager(widget as Control);
        }
Exemplo n.º 3
0
        public JuiceWidgetState(IWidget widget)
        {
            Widget = widget;

            foreach (EventDescriptor widgetEvent in TypeDescriptor.GetEvents(Widget.GetType()).OfType <EventDescriptor>())
            {
                WidgetEventAttribute attribute = widgetEvent.Attributes.OfType <WidgetEventAttribute>().SingleOrDefault();

                if (attribute != null && attribute.DataChangedHandler == true)
                {
                    _dataChangedEvent = new WidgetEvent(attribute.Name);
                    break;
                }
            }

            _cssManager = new CssManager(widget as Control);
        }