Inheritance: System.EventArgs
Exemplo n.º 1
0
 private void OnCommandManagerCommandActivated (object o, CommandActivatedArgs args) {
 	UpdateUndoRedoMessages();
 }
Exemplo n.º 2
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);
		}
    }