Ejemplo 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(FictionBook book)
 {
     OpenFictionDetailsRequested?.Invoke(this, new OpenFictionDetailsEventArgs(book));
 }
 private void OpenDetails(FictionBook book)
 {
     OpenFictionDetailsRequested?.Invoke(this, new OpenFictionDetailsEventArgs(book));
 }