This commit is contained in:
Michael Bucari-Tovo 2021-08-12 18:02:49 -06:00
parent e37a2ccca9
commit f925d10d2b
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ namespace LibationWinForms.BookLiberation.BaseForms
SyncContext = SynchronizationContext.Current; SyncContext = SynchronizationContext.Current;
} }
public void RegisterLiberation(IFileLiberator fileLiberator, LogMe logMe = null) public void RegisterFileLiberator(IFileLiberator fileLiberator, LogMe logMe = null)
{ {
//IFileLiberator must at least be IStreamable, otherwise the Form won't ever Show() //IFileLiberator must at least be IStreamable, otherwise the Form won't ever Show()
if (fileLiberator is null || fileLiberator is not IStreamable streamable) return; if (fileLiberator is null || fileLiberator is not IStreamable streamable) return;

View File

@ -143,7 +143,7 @@ namespace LibationWinForms.BookLiberation
strProc.Begin += (sender, libraryBook) => strProc.Begin += (sender, libraryBook) =>
{ {
var processForm = new TForm(); var processForm = new TForm();
processForm.RegisterLiberation(strProc, logMe); processForm.RegisterFileLiberator(strProc, logMe);
processForm.OnBegin(sender, libraryBook); processForm.OnBegin(sender, libraryBook);
}; };
@ -167,7 +167,7 @@ namespace LibationWinForms.BookLiberation
var streamable = new TStr(); var streamable = new TStr();
var streamForm = new TForm(); var streamForm = new TForm();
streamForm.RegisterLiberation(streamable); streamForm.RegisterFileLiberator(streamable);
if (completedAction != null) if (completedAction != null)
streamable.StreamingCompleted += completedAction; streamable.StreamingCompleted += completedAction;