Exemplo n.º 1
0
 private void menuItemUploadLocal_Click(object sender, EventArgs e)
 {
     if (this.listViewLocal.SelectedItems.Count == 1)
     {
         RemoteDriveItem item = this.listViewLocal.SelectedItems[0].Tag as RemoteDriveItem;
         this.RemoteDrive.CreateRemote(item.Load());
     }
 }
Exemplo n.º 2
0
 private void CreateRemoteRecursion(RemoteDriveItem item)
 {
     if (item.IsFile())
     {
         item.GetBinary();
     }
     this.ServiceClient.CreateItem(item.Load());
     if (item.IsDirectory())
     {
         foreach (RemoteDriveItem child in item.Children())
         {
             this.CreateRemoteRecursion(child);
         }
     }
 }
Exemplo n.º 3
0
 private void CreateRemoteThread(RemoteDriveItem item)
 {
     try
     {
         this.ServiceClient.CreateItem(item.Load());
         if (item.IsDirectory())
         {
             foreach (RemoteDriveItem child in item.Children())
             {
                 this.CreateRemoteRecursion(child);
             }
         }
         this.InvokeRemoteDriveEvent(RemoteDriveEventType.CreateRemoteOk);
     }
     catch (Exception e)
     {
         this.InvokeRemoteDriveEvent(RemoteDriveEventType.CreateRemoteFail, null, null, e);
     }
 }