KeeAgent.KeeAgentExt.PageantAgent_KeyUsed C# (CSharp) Method

PageantAgent_KeyUsed() private method

private PageantAgent_KeyUsed ( object sender, Agent e ) : void
sender object
e dlech.SshAgentLib.Agent
return void
        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);
              }
        }