Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        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));
        }