private void LoadSshKeyClick(object sender, EventArgs e)
{
if (!File.Exists(Settings.Pageant))
{
MessageBox.Show("Cannot load SSH key. PuTTY is not configured properly.", "PuTTY");
return;
}
Repositories.RepositoryHistory.AddMostRecentRepository(PrivateKeypath.Text);
if (string.IsNullOrEmpty(PrivateKeypath.Text))
{
MessageBox.Show("Could not load key.", "PuTTY");
return;
}
GitCommands.GitCommands.StartPageantWithKey(PrivateKeypath.Text);
Close();
}