public void LoadMeta(CacheDatFile cachedat) { var fn = ((cachedat?.FileEntry?.Name) ?? "") + ".xml"; Xml = cachedat.GetXml(); FileName = fn; RawPropertyGrid.SelectedObject = cachedat; modified = false; }
public void LoadMeta(CacheDatFile cachedat) { var fn = ((cachedat?.FileEntry?.Name) ?? "") + ".xml"; Xml = cachedat.GetXml(); FileName = fn; RawPropertyGrid.SelectedObject = cachedat; rpfFileEntry = cachedat?.FileEntry; modified = false; metaFormat = MetaFormat.XML; if (cachedat?.FileEntry != null) { metaFormat = MetaFormat.CacheFile; } }