public void ImportSelected() { OpenFileDialog ofd = new OpenFileDialog(); ofd.CheckPathExists = true; ofd.CheckFileExists = true; ofd.Filter = "Archivos JSON (*.json)|*.json|Archivos XML (*.xml)|*.xml"; if (ofd.ShowDialog().Value) { DataOperationsService.ImportData(ofd.FileName, DataOperations.ImportDocuments); } }