public void LoadLBD(string lbdPath) { Logger.Log()(LogLevel.INFO, $"Loading LBD from: {lbdPath}"); LBD lbd; using (BinaryReader br = new BinaryReader(File.Open(lbdPath, FileMode.Open))) { lbd = new LBD(br); } Logger.Log()(LogLevel.INFO, "Successfully loaded LBD"); LBDDocument document = CreateDocument(lbd); _treeController.PopulateTreeWithDocument(document, Path.GetFileName(lbdPath)); }
public void LoadTIM(string timPath) { Logger.Log()(LogLevel.INFO, $"Loading TIM from: {timPath}"); TIM tim; using (BinaryReader br = new BinaryReader(File.Open(timPath, FileMode.Open))) { tim = new TIM(br); } Logger.Log()(LogLevel.INFO, $"Successfully loaded TIM"); TIMDocument document = CreateDocument(tim); _treeController.PopulateTreeWithDocument(document, Path.GetFileName(timPath)); }
public void LoadMOM(string momPath) { Logger.Log()(LogLevel.INFO, $"Loading MOM from: {momPath}"); MOM mom; using (BinaryReader br = new BinaryReader(File.Open(momPath, FileMode.Open))) { mom = new MOM(br); } Logger.Log()(LogLevel.INFO, "Successfully loaded MOM"); MOMDocument document = CreateDocument(mom); _treeController.PopulateTreeWithDocument(document, Path.GetFileName(momPath)); }
public void LoadTMD(string tmdPath) { Logger.Log()(LogLevel.INFO, $"Loading TMD from: {tmdPath}"); TMD tmd; using (BinaryReader br = new BinaryReader(File.Open(tmdPath, FileMode.Open))) { tmd = new TMD(br); } Logger.Log()(LogLevel.INFO, "Successfully loaded TMD"); TMDDocument document = CreateDocument(tmd); _treeController.PopulateTreeWithDocument(document, Path.GetFileName(tmdPath)); }