Ejemplo n.º 1
0
        private void HostListener_OnFileTransferListing(object sender, Common.EventArgs.FileTransfer.FileTransferListingEventArgs e)
        {
            Network.Messages.FileTransfer.Response.ListingMessage rs = new Network.Messages.FileTransfer.Response.ListingMessage();
            rs.SymmetricKey   = Manager.Manager.getSymmetricKeyForRemoteId(e.ClientSystemId);
            rs.HostSystemId   = Manager.Manager.SystemId;
            rs.ClientSystemId = e.ClientSystemId;
            FileManager.BrowseTo(e.Folder);
            rs.ActFolder  = FileManager.GetActFolder();
            rs.Entrys     = FileManager.GetList();
            rs.Parent     = FileManager.GetParent();
            rs.ParentPath = FileManager.GetParentPath();

            Manager.Manager.sendMessage(rs);
        }
Ejemplo n.º 2
0
 private void ClientListener_OnFileTransferListing(object sender, Common.EventArgs.FileTransfer.FileTransferListingEventArgs e)
 {
     if (!this.IsDisposed && !this.Disposing)
     {
         if (this.InvokeRequired)
         {
             fillListRemoteCallback d = new fillListRemoteCallback(fillListRemote);
             this.Invoke(d, new object[] { e.ActFolder, e.Parent, e.ParentPath, e.Entrys });
         }
         else
         {
             fillListRemote(e.ActFolder, e.Parent, e.ParentPath, e.Entrys);
         }
     }
 }