public static void Initialize() { ftp = new FTPClient(Properties.Settings.Default.FTPAddress, Properties.Settings.Default.FTPUsername, StringCipher.Decrypt(Properties.Settings.Default.FTPPassword, "TorrentFlow")); if (!Utilites.IsNullOrEmpty(Properties.Settings.Default.WatchDirectory)){ watcher = new DirectoryWatcher(Properties.Settings.Default.WatchDirectory, NewTorrentFileDetected, NotifyFilters.LastWrite); watcher.SetFilter("*.torrent"); watcher.Start(); } else { pi.Notify("Not Watching", "TorrentFlow is not watching for torrent files.", 5000); } if (!Utilites.IsNullOrEmpty(Properties.Settings.Default.DownloadDirectory)) { StartTimer(); } else { pi.Notify("Not Downloading", "Torrentflow will not download any files.", 5000); } }