Inheritance: System.EventArgs
Beispiel #1
0
 private void FireKeyRemoved(ISshKey key)
 {
     if (KeyRemoved != null)
     {
         SshKeyEventArgs args = new SshKeyEventArgs(key);
         KeyRemoved(this, args);
     }
 }
Beispiel #2
0
 private void FireKeyRemoved(ISshKey key)
 {
     if (KeyRemoved != null) {
     SshKeyEventArgs args = new SshKeyEventArgs(key);
     KeyRemoved(this, args);
       }
 }
Beispiel #3
0
 private void PageantAgent_KeyAdded(object sender,SshKeyEventArgs e)
 {
     if (Options.AlwaysConfirm && !e.Key.HasConstraint(
     Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM))
       {
     var constraint = new Agent.KeyConstraint();
     constraint.Type = Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM;
     e.Key.AddConstraint(constraint);
       }
 }
Beispiel #4
0
 private void PageantAgent_KeyRemoved(object aSender, SshKeyEventArgs aEventArgs)
 {
     var fingerprint = aEventArgs.Key.GetMD5Fingerprint().ToHexString();
       if (keyFileMap.ContainsKey(fingerprint) && keyFileMap[fingerprint].IsTemporary) {
     try {
       File.Delete(keyFileMap[fingerprint].Path);
       keyFileMap.Remove(fingerprint);
     } catch (Exception ex) {
       Debug.Fail(ex.Message, ex.StackTrace);
     }
       }
 }
 internal void Agent_KeyAddedOrRemoved(object sender, SshKeyEventArgs e)
 {
     UpdateUI();
 }