예제 #1
0
        public static void HookupEvents(InstanceWidget widget)
        {
#if WINRT
            throw new NotImplementedException();
#else
            var type = widget.GetType();
            if (type.Assembly == etoAssembly)
            {
                return;
            }
            widget.HandleDefaultEvents(GetEvents(type));
#endif
        }
예제 #2
0
 internal static void OnStyleWidgetDefaults(InstanceWidget widget)
 {
     if (widget != null)
     {
         var styleHandlers = GetStyleList(widget.GetType(), false);
         if (styleHandlers != null)
         {
             foreach (var styleHandler in styleHandlers)
             {
                 styleHandler(widget);
             }
         }
     }
 }
예제 #3
0
        public static bool IsDefault(InstanceWidget widget, string identifier)
        {
#if WINRT
            throw new NotImplementedException();
#else
            var type = widget.GetType();
            if (type.Assembly == etoAssembly)
            {
                return(false);
            }
            var events = GetEvents(type);
            return(Array.IndexOf(events, identifier) >= 0);
#endif
        }