private void ButtonImportMetadata_Click(object sender, EventArgs e) { var importMetadataMapDialog = new ImportMetadataMapDialog(); if (importMetadataMapDialog.ShowDialog() == DialogResult.OK) { var actionLoadMetadataMap = importMetadataMapDialog.ActionLoadMetadataMap; LoadMetadataMap(actionLoadMetadataMap.MetadataMap); } }
private void ButtonImport_Click(object sender, EventArgs e) { var importMetadataMapDialog = new ImportMetadataMapDialog(); if (importMetadataMapDialog.ShowDialog() == DialogResult.OK) { var metadadoMapa = importMetadataMapDialog.ActionLoadMetadataMap.MetadataMap; ListBoxMaps.SelectedItem = metadadoMapa.FileName; ButtonLoadMap_Click(null, e); MetadataDisplay.ObjectsInMap = metadadoMapa.ObjectsInMap.ToList(); UpdateView(); } }