internal IdxViewModel(string name, Idx.Entry entry, IIdxManager idxManager) : base(name, GetChildren(name, idxManager)) { _idxManager = idxManager; ExportCommand = new RelayCommand(_ => FileDialog.OnFolder(x => Task.Run(() => ExtractProcessor.ShowProgress(progress => Extract(x, progress))))); }
internal IdxViewModel(string name, Idx.Entry entry, IIdxManager idxManager) : base(name, GetChildren(name, idxManager)) { _idxManager = idxManager; ExportCommand = new RelayCommand(_ => FileDialog.OnFolder(Extract)); }
internal EntryParserModel(Idx.Entry entry) { Entry = entry; Path = entry.GetFullName(); SplitPath = Path.Split('/'); }
public static string GetFullName(this Idx.Entry entry) => IdxName.Lookup(entry) ?? $"@{entry.Hash32:X08}_{entry.Hash16}";