remove legacy references
This commit is contained in:
parent
886aa4938d
commit
24cb1aa84f
@ -15,12 +15,8 @@ namespace LibationWinForms.Dialogs
|
|||||||
private const string COL_AccountName = nameof(AccountName);
|
private const string COL_AccountName = nameof(AccountName);
|
||||||
private const string COL_Locale = nameof(Locale);
|
private const string COL_Locale = nameof(Locale);
|
||||||
|
|
||||||
private Form _parent { get; }
|
public AccountsDialog()
|
||||||
|
|
||||||
public AccountsDialog(Form parent)
|
|
||||||
{
|
{
|
||||||
_parent = parent;
|
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
dataGridView1.Columns[COL_AccountName].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
dataGridView1.Columns[COL_AccountName].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||||
|
|||||||
@ -15,12 +15,8 @@ namespace LibationWinForms.Dialogs
|
|||||||
private const string COL_MoveUp = nameof(MoveUp);
|
private const string COL_MoveUp = nameof(MoveUp);
|
||||||
private const string COL_MoveDown = nameof(MoveDown);
|
private const string COL_MoveDown = nameof(MoveDown);
|
||||||
|
|
||||||
private Form _parent { get; }
|
public EditQuickFilters()
|
||||||
|
|
||||||
public EditQuickFilters(Form parent)
|
|
||||||
{
|
{
|
||||||
_parent = parent;
|
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
dataGridView1.Columns[COL_Filter].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
dataGridView1.Columns[COL_Filter].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||||
|
|||||||
@ -10,12 +10,8 @@ namespace LibationWinForms.Dialogs
|
|||||||
{
|
{
|
||||||
public List<Account> CheckedAccounts { get; } = new List<Account>();
|
public List<Account> CheckedAccounts { get; } = new List<Account>();
|
||||||
|
|
||||||
private Form _parent { get; }
|
public ScanAccountsDialog()
|
||||||
|
|
||||||
public ScanAccountsDialog(Form parent)
|
|
||||||
{
|
{
|
||||||
_parent = parent;
|
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.SetLibationIcon();
|
this.SetLibationIcon();
|
||||||
}
|
}
|
||||||
@ -44,7 +40,7 @@ namespace LibationWinForms.Dialogs
|
|||||||
|
|
||||||
private void editBtn_Click(object sender, EventArgs e)
|
private void editBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new AccountsDialog(_parent).ShowDialog() == DialogResult.OK)
|
if (new AccountsDialog().ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
// clear grid
|
// clear grid
|
||||||
this.accountsClb.Items.Clear();
|
this.accountsClb.Items.Clear();
|
||||||
|
|||||||
@ -312,7 +312,7 @@ namespace LibationWinForms
|
|||||||
private void noAccountsYetAddAccountToolStripMenuItem_Click(object sender, EventArgs e)
|
private void noAccountsYetAddAccountToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MessageBox.Show("To load your Audible library, come back here to the Import menu after adding your account");
|
MessageBox.Show("To load your Audible library, come back here to the Import menu after adding your account");
|
||||||
new AccountsDialog(this).ShowDialog();
|
new AccountsDialog().ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void scanLibraryToolStripMenuItem_Click(object sender, EventArgs e)
|
private async void scanLibraryToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
@ -331,7 +331,7 @@ namespace LibationWinForms
|
|||||||
|
|
||||||
private async void scanLibraryOfSomeAccountsToolStripMenuItem_Click(object sender, EventArgs e)
|
private async void scanLibraryOfSomeAccountsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using var scanAccountsDialog = new ScanAccountsDialog(this);
|
using var scanAccountsDialog = new ScanAccountsDialog();
|
||||||
|
|
||||||
if (scanAccountsDialog.ShowDialog() != DialogResult.OK)
|
if (scanAccountsDialog.ShowDialog() != DialogResult.OK)
|
||||||
return;
|
return;
|
||||||
@ -368,7 +368,7 @@ namespace LibationWinForms
|
|||||||
// selectively remove books from some accounts
|
// selectively remove books from some accounts
|
||||||
private void removeSomeAccountsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void removeSomeAccountsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using var scanAccountsDialog = new ScanAccountsDialog(this);
|
using var scanAccountsDialog = new ScanAccountsDialog();
|
||||||
|
|
||||||
if (scanAccountsDialog.ShowDialog() != DialogResult.OK)
|
if (scanAccountsDialog.ShowDialog() != DialogResult.OK)
|
||||||
return;
|
return;
|
||||||
@ -511,7 +511,7 @@ namespace LibationWinForms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EditQuickFiltersToolStripMenuItem_Click(object sender, EventArgs e) => new EditQuickFilters(this).ShowDialog();
|
private void EditQuickFiltersToolStripMenuItem_Click(object sender, EventArgs e) => new EditQuickFilters().ShowDialog();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Visible Books menu
|
#region Visible Books menu
|
||||||
@ -620,7 +620,7 @@ namespace LibationWinForms
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Settings menu
|
#region Settings menu
|
||||||
private void accountsToolStripMenuItem_Click(object sender, EventArgs e) => new AccountsDialog(this).ShowDialog();
|
private void accountsToolStripMenuItem_Click(object sender, EventArgs e) => new AccountsDialog().ShowDialog();
|
||||||
|
|
||||||
private void basicSettingsToolStripMenuItem_Click(object sender, EventArgs e) => new SettingsDialog().ShowDialog();
|
private void basicSettingsToolStripMenuItem_Click(object sender, EventArgs e) => new SettingsDialog().ShowDialog();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user