Beispiel #1
0
 void scheduleDominationAndFeedback(IDominatorItem dominator, DominationAction action)
 {
     schedule(() =>
     {
         try
         {
             dominator.SetState(action);
             var state = dominator.QueryState();
             scheduleToUI(() => feedBackState(dominator, state));
         }
         catch (Exception e)
         {
             var state = new DominationState(e);
             scheduleToUI(() => feedBackState(dominator, state));
         }
     });
 }
Beispiel #2
0
 void scheduleFeedbackFor(IDominatorItem dominator)
 {
     schedule(() =>
     {
         var state = dominator.QueryState();
         scheduleToUI(() => feedBackState(dominator, state));
     });
 }