private void ProcessDictionary(string file) { // Discovery de entidades db = new RedatamDatabase(); lwEntities.Items.Clear(); lwVariables.Items.Clear(); lwLabels.Items.Clear(); try { db.OpenDictionary(file); } catch (Exception e) { FillEntityNamesListView(); MessageBox.Show(this, e.Message); return; } finally { FillEntitiesListView(); } EnableSaveButtons(true); }
private static void ExportDicOutput(string path, string outpath) { if (Directory.Exists(path) == false) { throw new Exception("Input directory not found: " + path); } if (Directory.Exists(outpath)) { ClearXMLs(outpath); } foreach (string file in Directory.GetFiles(path, "*.dic")) { RedatamDatabase db = new RedatamDatabase(); db.OpenDictionary(file); MetadataExporter exp = new MetadataExporter(db); exp.Save(outpath + "\\" + Path.GetFileNameWithoutExtension(file) + ".xml"); } }