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; } }
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; } }
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); } }