Exemplo n.º 1
0
        private void OnLibraryItemReceived(object sender, MultiboxClientCSharpCore.Net.ServerInterfaceEventArgs.LibraryItemReceivedEventArgs eventArgs)
        {
            ILibraryItem item = eventArgs.LibraryItem;
            LibraryItemReceivedEventArgs libraryEventArgs = new LibraryItemReceivedEventArgs(item);

            messageQueue.Post(() => LibraryItemReceived(this, libraryEventArgs));
        }
Exemplo n.º 2
0
        private void OnLibraryItemReceived(GetLibraryItemResultData result)
        {
            ILibraryItem libraryItem = result.LibraryItem;

            LibraryItemReceivedEventArgs eventArgs = new LibraryItemReceivedEventArgs(libraryItem);

            LibraryItemReceived(this, eventArgs);
        }
Exemplo n.º 3
0
        private void OnLibraryItemReceived(object sender, LibraryItemReceivedEventArgs eventArgs)
        {
            ILibraryItem libraryItem = eventArgs.LibraryItem;

            if (libraryItem.Type != LibraryItemType.Directory)
            {
                return;
            }

            DirectoryItem directory = libraryItem as DirectoryItem;

            Items.Clear();

            foreach (ILibraryItem item in directory.Items)
            {
                Items.Add(new LibraryItemViewModel(item));
            }

            NotifyPropertyChanged("Items");
        }
Exemplo n.º 4
0
        private void OnItemReceived(ILibraryItem item)
        {
            LibraryItemReceivedEventArgs arguments = new LibraryItemReceivedEventArgs(item);

            LibraryItemReceived(this, arguments);
        }