示例#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;

            case ".ztr":
                _ztr.Show(listing, entry);
                break;
            }
        }