public static void RegisterEvent(BackpanelEventBase ev) { var handler = OnEventRegistered; if (handler != null) OnEventRegistered(ev); var te = ev as TwitterEventBase; if (te != null) { lock (_twitterEvents.SyncRoot) { _twitterEvents.Insert(0, te); if (_twitterEvents.Count > TwitterEventMaxHoldCount) _twitterEvents.RemoveAt(_twitterEvents.Count - 1); } } }
public BackpanelEventViewModel(BackpanelEventBase ev) { _sourceEvent = ev; }