コード例 #1
0
ファイル: SkinBase.cs プロジェクト: ly774508966/foundation
        public Dictionary <string, Action <EventX> > getEventInterests(InjectEventType type)
        {
            if (_eventInterests == null)
            {
                _eventInterests = new Dictionary <InjectEventType, Dictionary <string, Action <EventX> > >();
                MVCEventAttribute.CollectionEventInterests(this, _eventInterests);
            }
            Dictionary <string, Action <EventX> > e;

            if (_eventInterests.TryGetValue(type, out e) == false)
            {
                e = new Dictionary <string, Action <EventX> >();
                _eventInterests.Add(type, e);
            }
            return(e);
        }
コード例 #2
0
 public MVCEventAttribute(InjectEventType injectEventType, params string[] eventList)
 {
     this.injectEventType = injectEventType;
     this.eventList       = eventList;
 }