Exemple #1
0
 public bool TryConnect()
 {
     if (transferMode == TransferMode.FTP)
     {
         bool isFTPConnect = false;
         for (int i = 0; i < 3; i++)
         {
             if (ftpUpload.Connect())
             {
                 isFTPConnect = true;
                 break;
             }
         }
         return(isFTPConnect);
     }
     else
     {
         return(true);
     }
 }