mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Emit message on successful dat import.
This commit is contained in:
@@ -1118,7 +1118,10 @@ namespace RomRepoMgr.Core.Workers
|
||||
|
||||
ctx.SaveChanges();
|
||||
|
||||
WorkFinished?.Invoke(this, System.EventArgs.Empty);
|
||||
WorkFinished?.Invoke(this, new MessageEventArgs
|
||||
{
|
||||
Message = string.Format(Localization.DatImportSuccess, stats.TotalMachines, stats.TotalRoms)
|
||||
});
|
||||
|
||||
RomSetAdded?.Invoke(this, new RomSetEventArgs
|
||||
{
|
||||
@@ -1160,7 +1163,7 @@ namespace RomRepoMgr.Core.Workers
|
||||
public void Abort() => _aborted = true;
|
||||
|
||||
public event EventHandler SetIndeterminateProgress;
|
||||
public event EventHandler WorkFinished;
|
||||
public event EventHandler<MessageEventArgs> WorkFinished;
|
||||
public event EventHandler<ErrorEventArgs> ErrorOccurred;
|
||||
public event EventHandler<ProgressBoundsEventArgs> SetProgressBounds;
|
||||
public event EventHandler<ProgressEventArgs> SetProgress;
|
||||
|
||||
Reference in New Issue
Block a user