Renamed.
This commit is contained in:
parent
e37a2ccca9
commit
f925d10d2b
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user