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); } }
private void OnCommandManagerCommandActivated(object o, CommandActivatedArgs args) { UpdateUndoRedoMessages(); }