TOTPCopyToClipboard() 개인적인 메소드

Copies the specified entry's generated TOTP to the clipboard using the KeePass's clipboard function.
private TOTPCopyToClipboard ( PwEntry pe ) : void
pe PwEntry Password Entry.
리턴 void
 /// <summary>
 /// Happens when a cell of the column is double-clicked.
 /// </summary>
 /// <param name="columnName">Column's name.</param>
 /// <param name="pe">Entry associated with the clicked cell.</param>
 public override void PerformCellAction(string columnName, PwEntry pe)
 {
     if (!_plugin.TOTPEntryValidator.CanGenerateTOTP(pe))
     {
         UIUtil.ShowDialogAndDestroy(new SetupTOTP(_plugin, pe));
     }
     else if (_plugin.Settings.TOTPColumnCopyEnable)
     {
         _plugin.TOTPCopyToClipboard(pe);
     }
 }
예제 #2
0
 /// <summary>
 /// Happens when a cell of the column is double-clicked.
 /// </summary>
 /// <param name="strColumnName">Column's name.</param>
 /// <param name="pe">Entry associated with the clicked cell.</param>
 public override void PerformCellAction(string strColumnName, PwEntry pe)
 {
     if (strColumnName == null)
     {
         throw new ArgumentNullException("strColumnName");
     }
     if (m_host.CustomConfig.GetBool(setname_bool_TOTPColumnCopy_Enable, true))
     {
         plugin.TOTPCopyToClipboard(pe);
     }
 }