diff --git a/AudioCuesheetEditor/Pages/ViewModeImport.razor b/AudioCuesheetEditor/Pages/ViewModeImport.razor
index 6318091d..38f1a640 100644
--- a/AudioCuesheetEditor/Pages/ViewModeImport.razor
+++ b/AudioCuesheetEditor/Pages/ViewModeImport.razor
@@ -41,7 +41,7 @@ along with Foobar. If not, see
- @((MarkupString)(_localizer["Choose file or drag it here"].ToString()))
+ @((MarkupString)(_localizer["Choose file or drag it here"]))
@foreach (var invalidFileName in invalidDropFileNames)
{
@@ -51,55 +51,6 @@ along with Foobar. If not, see
}
-
-
-
- @_localizer["Textfile"]
-
-
-
-
-
- @foreach (var invalidFileName in invalidTextImportFileNames)
- {
-
- @_localizer["Invalid file"]
- @String.Format(_localizer["You dropped an invalid file ({0}) that can not be processed."], invalidFileName)
-
-
- }
-
-
- @_localizer["Cuesheet"]
-
-
-
-
-
- @foreach (var invalidFileName in invalidCuesheetfileNames)
- {
-
- @_localizer["Invalid file"]
- @String.Format(_localizer["You dropped an invalid file ({0}) that can not be processed."], invalidFileName)
-
-
- }
-
-
- @_localizer["Project filename"]
-
-
-
-
-
- @foreach (var invalidFileName in invalidProjectfileNames)
- {
-
- @_localizer["Invalid file"]
- @String.Format(_localizer["You dropped an invalid file ({0}) that can not be processed."], invalidFileName)
-
-
- }
@@ -247,6 +198,7 @@ along with Foobar. If not, see
selectedStep = name;
break;
case "validateData":
+ //TODO: File validation should be done seperatly
if ((_sessionStateContainer.ImportCuesheet != null) || (_sessionStateContainer.Importfile != null))
{
selectFilesCompleted = true;
@@ -267,6 +219,7 @@ along with Foobar. If not, see
}
}
+ //TODO: Shouldn't edit the selected step
String SelectedStep
{
get
@@ -280,60 +233,6 @@ along with Foobar. If not, see
}
}
- private async Task OnTextImportFileChanged(FileChangedEventArgs e)
- {
- invalidTextImportFileNames.Clear();
- if (e.Files.FirstOrDefault() != null)
- {
- var file = e.Files.First();
- if (IOUtility.CheckFileMimeType(file, FileMimeTypes.Text, FileExtensions.Text) == false)
- {
- invalidTextImportFileNames.Add(file.Name);
- }
- else
- {
- await OnFileChanged(new List() { file });
- }
- StateHasChanged();
- }
- }
-
- private async Task OnCuesheetfileChanged(FileChangedEventArgs e)
- {
- invalidCuesheetfileNames.Clear();
- if (e.Files.FirstOrDefault() != null)
- {
- var file = e.Files.First();
- if (IOUtility.CheckFileMimeType(file, FileMimeTypes.Cuesheet, FileExtensions.Cuesheet) == false)
- {
- invalidCuesheetfileNames.Add(file.Name);
- }
- else
- {
- await OnFileChanged(new List() { file });
- }
- StateHasChanged();
- }
- }
-
- private async Task OnProjectfileChanged(FileChangedEventArgs e)
- {
- invalidProjectfileNames.Clear();
- if (e.Files.FirstOrDefault() != null)
- {
- var file = e.Files.First();
- if (IOUtility.CheckFileMimeType(file, FileMimeTypes.Projectfile, FileExtensions.Projectfile) == false)
- {
- invalidProjectfileNames.Add(file.Name);
- }
- else
- {
- await OnFileChanged(new List() { file });
- }
- StateHasChanged();
- }
- }
-
private async Task OnDropFileChanged(FileChangedEventArgs e)
{
invalidDropFileNames.Clear();
diff --git a/AudioCuesheetEditor/Resources/Localization/ViewModeImport/de.json b/AudioCuesheetEditor/Resources/Localization/ViewModeImport/de.json
index 4d8539a4..1a863c80 100644
--- a/AudioCuesheetEditor/Resources/Localization/ViewModeImport/de.json
+++ b/AudioCuesheetEditor/Resources/Localization/ViewModeImport/de.json
@@ -7,12 +7,6 @@
"Choose file or drag it here": "Wählen Sie die Dateien oder ziehen Sie diese hier her",
"Invalid file": "Ungültige Datei",
"You dropped an invalid file ({0}) that can not be processed.": "Sie haben eine ungültige Datei ({0}) selektiert, die nicht verarbeitet werden kann.",
- "Import textfile tooltip": "Textdatei importieren und Daten über reguläre Ausdrücke extrahieren",
- "Textfile": "Textdatei",
- "Import cuesheet tooltip": "Importieren Sie ein Cuesheet und extrahieren Sie alle Daten daraus",
- "Cuesheet": "Cuesheet",
- "Import project tooltip": "Ein gespeichertes Projekt importieren",
- "Project filename": "Projektdatei",
"Validate data for import": "Daten für den Import validieren",
"Recognition of import data finished": "Analyse der Importdateien abgeschlossen",
"Please validate the following data recognized by import assistant. Once you have validated all input, you can confirm import of data.": "Bitte validieren sie die analysierten und angezeigten Dateien. Anschließend können Sie die Daten bestätigen und den Import durchführen.",
diff --git a/AudioCuesheetEditor/Resources/Localization/ViewModeImport/en.json b/AudioCuesheetEditor/Resources/Localization/ViewModeImport/en.json
index 960cb5a1..6cc78fc4 100644
--- a/AudioCuesheetEditor/Resources/Localization/ViewModeImport/en.json
+++ b/AudioCuesheetEditor/Resources/Localization/ViewModeImport/en.json
@@ -7,12 +7,6 @@
"Choose file or drag it here": "Choose files or drag them here",
"Invalid file": "Invalid file",
"You dropped an invalid file ({0}) that can not be processed.": "You dropped an invalid file ({0}) that can not be processed.",
- "Import textfile tooltip": "Import a plain text file and extract data via regular expressions",
- "Textfile": "Textfile",
- "Import cuesheet tooltip": "Import a cuesheet file and extract all data from it",
- "Cuesheet": "Cuesheet",
- "Import project tooltip": "Import a saved project",
- "Project filename": "Project filename",
"Validate data for import": "Validate data for import",
"Recognition of import data finished": "Recognition of import data finished",
"Please validate the following data recognized by import assistant. Once you have validated all input, you can confirm import of data.": "Please validate the following data recognized by import assistant. Once you have validated all input, you can confirm import of data.",