Edited comments
This commit is contained in:
parent
5c535478d1
commit
aa8491f205
@ -16,7 +16,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
public override string DecodeActionName => "Converting";
|
public override string DecodeActionName => "Converting";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IProcessable event handler overrides
|
#region Processable event handler overrides
|
||||||
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
||||||
{
|
{
|
||||||
LogMe.Info($"Convert Step, Begin: {libraryBook.Book}");
|
LogMe.Info($"Convert Step, Begin: {libraryBook.Book}");
|
||||||
|
|||||||
@ -18,7 +18,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
private string authorNames;
|
private string authorNames;
|
||||||
private string narratorNames;
|
private string narratorNames;
|
||||||
|
|
||||||
#region IProcessable event handler overrides
|
#region Processable event handler overrides
|
||||||
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
||||||
{
|
{
|
||||||
base.Processable_Begin(sender, libraryBook);
|
base.Processable_Begin(sender, libraryBook);
|
||||||
@ -40,7 +40,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IStreamable event handler overrides
|
#region Streamable event handler overrides
|
||||||
public override void Streamable_StreamingProgressChanged(object sender, DownloadProgress downloadProgress)
|
public override void Streamable_StreamingProgressChanged(object sender, DownloadProgress downloadProgress)
|
||||||
{
|
{
|
||||||
base.Streamable_StreamingProgressChanged(sender, downloadProgress);
|
base.Streamable_StreamingProgressChanged(sender, downloadProgress);
|
||||||
@ -61,7 +61,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IAudioDecodable event handlers
|
#region AudioDecodable event handlers
|
||||||
public override void AudioDecodable_RequestCoverArt(object sender, Action<byte[]> setCoverArtDelegate)
|
public override void AudioDecodable_RequestCoverArt(object sender, Action<byte[]> setCoverArtDelegate)
|
||||||
{
|
{
|
||||||
base.AudioDecodable_RequestCoverArt(sender, setCoverArtDelegate);
|
base.AudioDecodable_RequestCoverArt(sender, setCoverArtDelegate);
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
public override string DecodeActionName => "Decrypting";
|
public override string DecodeActionName => "Decrypting";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IProcessable event handler overrides
|
#region Processable event handler overrides
|
||||||
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
public override void Processable_Begin(object sender, LibraryBook libraryBook)
|
||||||
{
|
{
|
||||||
LogMe.Info($"Download & Decrypt Step, Begin: {libraryBook.Book}");
|
LogMe.Info($"Download & Decrypt Step, Begin: {libraryBook.Book}");
|
||||||
|
|||||||
@ -58,13 +58,13 @@ namespace LibationWinForms.BookLiberation.BaseForms
|
|||||||
processable.StatusUpdate += Processable_StatusUpdate;
|
processable.StatusUpdate += Processable_StatusUpdate;
|
||||||
processable.Completed += Processable_Completed;
|
processable.Completed += Processable_Completed;
|
||||||
|
|
||||||
//The form is created on IProcessable.Begin and we
|
//The form is created on Processable.Begin and we
|
||||||
//dispose of it on IProcessable.Completed
|
//dispose of it on Processable.Completed
|
||||||
processable.Completed += OnCompletedDispose;
|
processable.Completed += OnCompletedDispose;
|
||||||
|
|
||||||
//Don't unsubscribe from Dispose because it fires when
|
//Don't unsubscribe from Dispose because it fires when
|
||||||
//IStreamable.StreamingCompleted closes the form, and
|
//Streamable.StreamingCompleted closes the form, and
|
||||||
//the IProcessable events need to live past that event.
|
//the Processable events need to live past that event.
|
||||||
processable.Completed += UnsubscribeProcessable;
|
processable.Completed += UnsubscribeProcessable;
|
||||||
}
|
}
|
||||||
private void Subscribe(AudioDecodable audioDecodable)
|
private void Subscribe(AudioDecodable audioDecodable)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ namespace LibationWinForms.BookLiberation
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#region IStreamable event handler overrides
|
#region Streamable event handler overrides
|
||||||
public override void Streamable_StreamingBegin(object sender, string beginString)
|
public override void Streamable_StreamingBegin(object sender, string beginString)
|
||||||
{
|
{
|
||||||
base.Streamable_StreamingBegin(sender, beginString);
|
base.Streamable_StreamingBegin(sender, beginString);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user