Example #1
0
 public void RemoveCommitEvent(CommitTransitionEvent cte)
 {
     if (m_commitHandlers.ContainsValue(cte))
     {
         m_commitHandlers.Remove(m_commitHandlers.GetKey(m_commitHandlers.IndexOfValue(cte)));
     }
 }
Example #2
0
 public void AddCommitEvent(CommitTransitionEvent cte, double priority)
 {
     if (!m_commitHandlers.ContainsValue(cte))
     {
         m_commitHandlers.Add(priority, cte);
     }
 }
Example #3
0
 public void DoCommit(IModel model, object userData)
 {
     for (int i = 0; i < m_commitHandlers.Count; i++)
     {
         CommitTransitionEvent cte = (CommitTransitionEvent)m_commitHandlers.GetByIndex(i);
         cte(model, userData);
     }
 }
Example #4
0
 public new void RemoveCommitEvent(CommitTransitionEvent cte)
 {
     Puke();
 }
Example #5
0
 public new void AddCommitEvent(CommitTransitionEvent cte, double priority)
 {
     Puke();
 }