Exemplo n.º 1
0
        private void OnFileListingDoneEvent(MessageEventArgs_411 message)
        {
            var folder = message.Path;
            var n = (Folder) Get(folder); //path is always to a folder

            if (Listings.ContainsKey(folder)) {
                n.AddChildren(Listings[folder]);
            } else {
                n.AddChildren(new List<MessageEventArgs_410420>());
            }
            Listings.Remove(folder);
        }
Exemplo n.º 2
0
 // 411
 private void OnFileListingDoneEvent(int messageId, string messageName, string message)
 {
     if (FileListingDoneEvent != null) {
         var w = SplitMessage(message);
         var path = w[0];
         var free = long.Parse(w[1]);
         var m = new MessageEventArgs_411(messageId, messageName, path, free);
         FileListingDoneEvent(m);
     }
 }