private void PageantAgent_KeyUsed(object sender, Agent.KeyUsedEventArgs e)
{
if (Options.ShowBalloon) {
var appText = e.OtherProcess == null
? Translatable.NotifyKeyFetchedUnknownApplication
: string.Format("{0} ({1})", e.OtherProcess.MainWindowTitle, e.OtherProcess.ProcessName);
string notifyText = string.Format(Translatable.NotifyKeyFetched,
e.Key.Comment, appText);
uiHelper.ShowBalloonNotification(notifyText);
}
}