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(); }
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(); }
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"); } }
private void View_ChangedPrivateKey(object sender, PrivateKeyArgs e) { _credentials.setIdentity(null == e.KeyFile ? null : LocalFactory.createLocal(e.KeyFile)); Update(); }