public void RemovePrepareEvent(PrepareTransitionEvent pte) { if (m_prepareHandlers.ContainsValue(pte)) { m_prepareHandlers.Remove(m_commitHandlers.GetKey(m_commitHandlers.IndexOfValue(pte))); } }
public void AddPrepareEvent(PrepareTransitionEvent pte, double priority) { if (!m_prepareHandlers.ContainsValue(pte)) { m_prepareHandlers.Add(priority, pte); } }
public IList DoPrepare(IModel model, object userData) { ArrayList al = new ArrayList(); for (int i = 0; i < m_prepareHandlers.Count; i++) { PrepareTransitionEvent pte = (PrepareTransitionEvent)m_prepareHandlers.GetByIndex(i); object result = pte(model, userData); if (result != null) { al.Add(result); } } return(al); }
public new void RemovePrepareEvent(PrepareTransitionEvent pte) { Puke(); }
public new void AddPrepareEvent(PrepareTransitionEvent pte, double priority) { Puke(); }