Exemple #1
0
 public override void execute(AnomalousMvcContext context)
 {
     if (Name != null)
     {
         MusclePosition musclePosition = new MusclePosition();
         musclePosition.captureState();
         context.addModel(Name, musclePosition);
     }
     else
     {
         Log.Warning("No name defined.");
     }
 }
Exemple #2
0
 public override void execute(AnomalousMvcContext context)
 {
     if (Name != null)
     {
         TeethHighlightState saved = context.getModel <TeethHighlightState>(Name);
         if (saved == null)
         {
             saved = new TeethHighlightState();
             context.addModel(Name, saved);
         }
         saved.Highlighted = TeethController.HighlightContacts;
     }
     else
     {
         Log.Warning("No name defined.");
     }
 }