예제 #1
0
 private void View_ChangedPrivateKeyEvent(object sender, PrivateKeyArgs e)
 {
     _host.getCredentials()
     .setIdentity(null == e.KeyFile || e.KeyFile.Equals(LocaleFactory.localizedString("None"))
             ? null
             : LocalFactory.get(e.KeyFile));
     Update();
     ItemChanged();
 }
예제 #2
0
 private void View_ChangedPrivateKey(object sender, PrivateKeyArgs e)
 {
     _credentials.setIdentity(null == e.KeyFile ? null : LocalFactory.get(e.KeyFile));
     if (!_keys.Contains(e.KeyFile))
     {
         _keys.Add(e.KeyFile);
         View.PopulatePrivateKeys(_keys);
     }
     Update();
 }
예제 #3
0
 private void View_ChangedPrivateKey(object sender, PrivateKeyArgs e)
 {
     if (null != e.KeyFile)
     {
         View.PkLabel         = e.KeyFile;
         View.PasswordEnabled = false;
     }
     else
     {
         View.PkLabel = Locale.localizedString("No private key selected");
     }
 }
예제 #4
0
 private void View_ChangedPrivateKey(object sender, PrivateKeyArgs e)
 {
     _credentials.setIdentity(null == e.KeyFile ? null : LocalFactory.createLocal(e.KeyFile));
     Update();
 }
예제 #5
0
 private void View_ChangedPrivateKey(object sender, PrivateKeyArgs e)
 {
     _credentials.setIdentity(null == e.KeyFile ? null : LocalFactory.createLocal(e.KeyFile));
     Update();
 }