Пример #1
0
 private void LoadCfg(string Alias)
 {
     Cfg.Open();
     CarregaCombo();
     CarregaColunas();
     if (Cfg.TrazerPreenchido)
     {
         Pesquisar();
     }
 }
Пример #2
0
        /// <summary>
        /// Load a existing project map by file
        /// </summary>
        /// <param name="folder"></param>
        /// <param name="file"></param>
        public void Load(string folder, string file, string encoding)
        {
            Dispose();
            ResolveName(file);

            XLog.WriteLine(Levels.Info, "Loading map {0} from path {1}...", file, folder);

            Cfg.Open(folder + @"\cfg");
            Load(folder + @"\nfa\", $"{file}{encoding}.nfa", new Action <byte[]>(Nfa.Load));
            Load(folder + @"\nfc\", $"{file}{encoding}.nfc", new Action <byte[]>(Nfc.Load));
            Load(folder + @"\nfe\", $"{file}{encoding}.nfe", new Action <byte[]>(Nfe.Load));
            Load(folder + @"\nfl\", $"{file}{encoding}.nfl", new Action <byte[]>(Nfl.Load));
            Load(folder + @"\nfm\", $"{file}{encoding}.nfm", new Action <byte[]>(Nfm.Load));
            Load(folder + @"\nfp\", $"{file}{encoding}.nfp", new Action <byte[]>(Nfp.Load));
            Load(folder + @"\nfs\", $"{file}{encoding}.nfs", new Action <byte[]>(Nfs.Load));
            Load(folder + @"\nfw\", $"{file}{encoding}.nfw", new Action <byte[]>(Nfw.Load));
            Load(folder + @"\pvs\", $"{file}{encoding}.pvs", new Action <byte[]>(Pvs.Load));
            Load(folder + @"\qpf\", $"{file}{encoding}.qpf", new Action <byte[]>(Qpf.Load));

            XLog.WriteLine(Levels.Info, "Map loading completed.");
        }