예제 #1
0
 private void OnCommandManagerCommandActivated(object o, CommandActivatedArgs args)
 {
     if ((args.Target == CommandTarget.Normal) && (!wasTextModified))
     {
         wasTextModified = true;
         EmitModificationStatusChangedEvent(true);
     }
     else if ((args.Target == CommandTarget.Translation) && (!wasTranslationModified))
     {
         wasTranslationModified = true;
         EmitModificationStatusChangedEvent(true);
     }
     else if ((args.Target == CommandTarget.NormalAndTranslation) && ((!wasTextModified) || (!wasTranslationModified)))
     {
         wasTextModified        = true;
         wasTranslationModified = true;
         EmitModificationStatusChangedEvent(true);
     }
 }
예제 #2
0
 private void OnCommandManagerCommandActivated(object o, CommandActivatedArgs args)
 {
     UpdateUndoRedoMessages();
 }