Пример #1
0
        private void OnArchiveLeafSelected(UiArchiveLeaf archiveLeaf)
        {
            ArchiveEntry entry = archiveLeaf.Entry;
            ArchiveListing listing = archiveLeaf.Listing;

            switch (Path.GetExtension(entry.Name))
            {
                case ".scd":
                    _sound.Show(listing, entry);
                    break;
            }
        }
Пример #2
0
        private void OnArchiveLeafSelected(UiArchiveLeaf archiveLeaf)
        {
            ArchiveEntry   entry   = archiveLeaf.Entry;
            ArchiveListing listing = archiveLeaf.Listing;

            switch (Path.GetExtension(entry.Name))
            {
            case ".scd":
                _sound.Show(listing, entry);
                break;

            case ".ztr":
                _ztr.Show(listing, entry);
                break;
            }
        }
Пример #3
0
        private void OnSelectedLeafChanged(IUiLeaf leaf)
        {
            HideControls();

            UiWpdTableLeaf wpdLeaf = leaf as UiWpdTableLeaf;

            if (wpdLeaf != null)
            {
                OnWpdLeafSelected(wpdLeaf);
                return;
            }

            UiArchiveLeaf archiveLeaf = leaf as UiArchiveLeaf;

            if (archiveLeaf != null)
            {
                OnArchiveLeafSelected(archiveLeaf);
            }
        }