private void OpenTocFile(string tocbin, string gamePath = "") { if (string.IsNullOrEmpty(gamePath)) { gamePath = Path.GetDirectoryName(tocbin); } _tocHnd = new TocHandler(tocbin, gamePath); OpenToc(_tocHnd); }
private void OpenToc(TocHandler tocHnd) { treeViewTOC.BeginUpdate(); treeViewTOC.Nodes.Clear(); foreach (var chunk in tocHnd.ChunkList) { BlockToTreeView(chunk); } treeViewTOC.EndUpdate(); }