Пример #1
0
 public void PropChanged(int hvo, int tag, int ivMin, int cvIns, int cvDel)
 {
     if (Entry == null)                 // only do it once, or we get a stack overflow
     {
         NonUndoableUnitOfWorkHelper.DoSomehow(Parent.m_actionHandler, () => { Entry = Parent.MakeEntry("another entry"); });
     }
 }
Пример #2
0
 public void DoSomehow_WorksWhenNoUowIsActive()
 {
     m_actionHandler.EndUndoTask();
     NonUndoableUnitOfWorkHelper.DoSomehow(m_actionHandler, () => MakeEntry("an entry"));
 }
Пример #3
0
 public void DoSomehow_WorksDuringOtherUow()
 {
     // Baseclass arranges that a UOW is active at the start of all test methods.
     NonUndoableUnitOfWorkHelper.DoSomehow(m_actionHandler, () => MakeEntry("an entry"));
 }