Exemplo n.º 1
0
        private void OpenDetails(ScanResultItemViewModel foundItem)
        {
            switch (foundItem)
            {
            case NonFictionScanResultItemViewModel nonFictionFoundItem:
                OpenNonFictionDetailsRequested?.Invoke(this, new OpenNonFictionDetailsEventArgs(nonFictionFoundItem.LibgenObject));
                break;

            case FictionScanResultItemViewModel fictionFoundItem:
                OpenFictionDetailsRequested?.Invoke(this, new OpenFictionDetailsEventArgs(fictionFoundItem.LibgenObject));
                break;

            case SciMagScanResultItemViewModel sciMagFoundItem:
                OpenSciMagDetailsRequested?.Invoke(this, new OpenSciMagDetailsEventArgs(sciMagFoundItem.LibgenObject));
                break;
            }
        }
 protected override void OpenDetails(NonFictionBook book)
 {
     OpenNonFictionDetailsRequested?.Invoke(this, new OpenNonFictionDetailsEventArgs(book));
 }
Exemplo n.º 3
0
 private void OpenDetails(NonFictionBook book)
 {
     OpenNonFictionDetailsRequested?.Invoke(this, new OpenNonFictionDetailsEventArgs(book));
 }