diff --git a/AudioCuesheetEditor/Extensions/SessionStateContainer.cs b/AudioCuesheetEditor/Extensions/SessionStateContainer.cs
index 82035a6d..1a988975 100644
--- a/AudioCuesheetEditor/Extensions/SessionStateContainer.cs
+++ b/AudioCuesheetEditor/Extensions/SessionStateContainer.cs
@@ -93,29 +93,18 @@ public void ResetImport()
{
Importfile = null;
ImportAudiofile = null;
- }
-
- public void StartImportCuesheet(ApplicationOptions applicationOptions)
- {
- if (ImportCuesheet != null)
- {
- Cuesheet.Import(ImportCuesheet, applicationOptions, _traceChangeManager);
- ImportCuesheet = null;
- }
- ResetImport();
+ ImportCuesheet = null;
}
private void SetCuesheetReference(Cuesheet value)
{
- cuesheet.CuesheetImported -= Cuesheet_CuesheetImported;
cuesheet = value;
- cuesheet.CuesheetImported += Cuesheet_CuesheetImported;
_traceChangeManager.Reset();
_traceChangeManager.TraceChanges(Cuesheet);
CuesheetChanged?.Invoke(this, EventArgs.Empty);
}
- private void Cuesheet_CuesheetImported(object? sender, EventArgs e)
+ public void FireCuesheetImported()
{
CuesheetChanged?.Invoke(this, EventArgs.Empty);
}
diff --git a/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs b/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs
index dfcbf18d..755f4d14 100644
--- a/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs
+++ b/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs
@@ -13,9 +13,7 @@
//You should have received a copy of the GNU General Public License
//along with Foobar. If not, see
//.
-using AudioCuesheetEditor.Model.AudioCuesheet.Import;
using AudioCuesheetEditor.Model.Entity;
-using AudioCuesheetEditor.Model.IO;
using AudioCuesheetEditor.Model.IO.Audio;
using AudioCuesheetEditor.Model.IO.Export;
using AudioCuesheetEditor.Model.Options;
@@ -60,7 +58,6 @@ public class Cuesheet(TraceChangeManager? traceChangeManager = null) : Validatea
public event EventHandler? TrackRemoved;
public event EventHandler? SectionAdded;
public event EventHandler? SectionRemoved;
- public event EventHandler? CuesheetImported;
[JsonInclude]
public IReadOnlyCollection