private void SshConfig_Click(object sender, EventArgs e) { if (Putty.Checked) { if (AutoFindPuttyPaths()) MessageBox.Show("All paths needed for PuTTY could be automaticly found and are set.", "PuTTY"); else tabControl1.SelectTab("ssh"); } }