Esempio n. 1
0
 private void sendToRecipients()
 {
     _showProgress = true;
     foreach (string chatter in _recipients)
     {
         string UID   = _session.FindUID(chatter);
         int    proxy = _session.CreateProxy(UID);
         if (proxy == -1)
         {
             string msg  = "INVALID PROXY" + proxy.ToString();
             int    sz   = msg.Length;
             int    type = 0; // error type
             receiveOutput(msg, ref sz, ref type);
         }
         else
         {
             _progressAmount = 0;
             sendFilesTo(chatter, proxy);
             _session.FreeProxy(UID, proxy);
         }
     }
     _sendThread.Abort();
     _sendThread   = null;
     _showProgress = false;
 }