private void Connect()
{
if (Properties.Settings.Default.validConnectionSettings)
{
try
{
_connecting = true;
TorrentAPI ta = new TorrentAPI(Properties.Settings.Default.hostname, Properties.Settings.Default.username, Properties.Settings.Default.password);
Properties.Settings.Default.torrentDir = ta.GetDownloadDir();
_connecting = false;
_connected = true;
}
catch (Exception ex)
{
_connecting = false;
_connected = false;
}
}
}