void ServerService_AvailableFilesUpdated(object sender, FileListModificationEventArgs e)
 {
     if (AvailableFilesUpdated != null)
     {
         AvailableFilesUpdated(sender, e);
     }
 }
        private void HandleFileModificationMessage(IMessage message)
        {
            if (message is FileModificationMessage)
            {
                _files.UpdateFileList((message as FileModificationMessage).Modifications);

                _parent.BroadcastFileListModifications((message as FileModificationMessage).Modifications);

                if (AvailableFilesUpdated != null)
                {
                    FileListModificationEventArgs e = new FileListModificationEventArgs((message as FileModificationMessage).Modifications);

                    AvailableFilesUpdated(this, e);
                }
            }
            else throw new InvalidOperationException();
        }
 void factory_FileListModificationsReceived(object sender, FileListModificationEventArgs e)
 {
     if (FileListModificationsReceived != null)
     {
         FileListModificationsReceived(sender, e);
     }
 }
 void client_FileListUpdateReceived(object sender, FileListModificationEventArgs e)
 {
     if (_fileListUpdateCallback != null)
     {
         _fileListUpdateCallback();
     }
 }
        private bool IgnoreEmptyHashedFile(FileModificationDescriptor file)
        {
            if (string.IsNullOrEmpty(file.Hash))
            {
                if (FileIgnored != null)
                {
                    FileListModificationEventArgs args = new FileListModificationEventArgs(new FileModificationDescriptor[] { file });

                    FileIgnored(this, args);
                }

                return true;
            }

            return false;
        }
        void Service_FileListModificationsReceived(object sender, FileListModificationEventArgs e)
        {
            _networkFiles.UpdateFileList(e.Modifications);

            if (FileListUpdateReceived != null)
            {
                FileListUpdateReceived(sender, e);
            }
        }
        void _server_AvailableFilesUpdated(object sender, FileListModificationEventArgs e)
        {
            BitTunnelServerProtocol server = sender as BitTunnelServerProtocol;

            foreach (FileModificationDescriptor modification in e.Modifications)
            {
                if (modification.Mode == FileModificationMode.New)
                {
                    AddModification(server, modification);
                }
                else
                {
                    RemoveModification(server, modification);
                }
            }
        }
 void protocol_AvailableFilesUpdated(object sender, FileListModificationEventArgs e)
 {
     if (AvailableFilesUpdated != null)
     {
         AvailableFilesUpdated(sender, e);
     }
 }
 void client_FileListUpdated(object sender, FileListModificationEventArgs e)
 {
     _fileListUpdateReceived = true;
 }