Removed intermediate class.
This commit is contained in:
parent
081878b6f7
commit
0e7930f2b6
@ -6,12 +6,7 @@ using System;
|
|||||||
|
|
||||||
namespace LibationWinForms.BookLiberation
|
namespace LibationWinForms.BookLiberation
|
||||||
{
|
{
|
||||||
public partial class AudioDecodeForm
|
public partial class AudioDecodeForm : LiberationBaseForm
|
||||||
#if DEBUG
|
|
||||||
: DebugIntermediate
|
|
||||||
#else
|
|
||||||
: LiberationBaseForm
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
public virtual string DecodeActionName { get; } = "Decoding";
|
public virtual string DecodeActionName { get; } = "Decoding";
|
||||||
public AudioDecodeForm() => InitializeComponent();
|
public AudioDecodeForm() => InitializeComponent();
|
||||||
|
|||||||
@ -9,7 +9,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace LibationWinForms.BookLiberation.BaseForms
|
namespace LibationWinForms.BookLiberation.BaseForms
|
||||||
{
|
{
|
||||||
public abstract class LiberationBaseForm : Form
|
public class LiberationBaseForm : Form
|
||||||
{
|
{
|
||||||
protected IStreamable Streamable { get; private set; }
|
protected IStreamable Streamable { get; private set; }
|
||||||
protected LogMe LogMe { get; private set; }
|
protected LogMe LogMe { get; private set; }
|
||||||
@ -177,12 +177,4 @@ namespace LibationWinForms.BookLiberation.BaseForms
|
|||||||
public virtual void OnCoverImageDiscovered(object sender, byte[] coverArt) { }
|
public virtual void OnCoverImageDiscovered(object sender, byte[] coverArt) { }
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
#region VS Design View Hack
|
|
||||||
/// <summary>
|
|
||||||
/// This class is a hack so that VS designer will work wif an abstract base class.
|
|
||||||
/// https://stackoverflow.com/questions/1620847/how-can-i-get-visual-studio-2008-windows-forms-designer-to-render-a-form-that-im/2406058#2406058
|
|
||||||
/// </summary>
|
|
||||||
public class DebugIntermediate : LiberationBaseForm { }
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,12 +7,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace LibationWinForms.BookLiberation
|
namespace LibationWinForms.BookLiberation
|
||||||
{
|
{
|
||||||
public partial class DownloadForm
|
public partial class DownloadForm : LiberationBaseForm
|
||||||
#if DEBUG
|
|
||||||
: DebugIntermediate
|
|
||||||
#else
|
|
||||||
: LiberationBaseForm
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
public DownloadForm()
|
public DownloadForm()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user