remove legacy references

This commit is contained in:
Robert McRackan 2022-05-12 13:35:08 -04:00
parent 886aa4938d
commit 24cb1aa84f
4 changed files with 9 additions and 21 deletions

View File

@ -15,12 +15,8 @@ namespace LibationWinForms.Dialogs
private const string COL_AccountName = nameof(AccountName);
private const string COL_Locale = nameof(Locale);
private Form _parent { get; }
public AccountsDialog(Form parent)
public AccountsDialog()
{
_parent = parent;
InitializeComponent();
dataGridView1.Columns[COL_AccountName].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

View File

@ -15,12 +15,8 @@ namespace LibationWinForms.Dialogs
private const string COL_MoveUp = nameof(MoveUp);
private const string COL_MoveDown = nameof(MoveDown);
private Form _parent { get; }
public EditQuickFilters(Form parent)
public EditQuickFilters()
{
_parent = parent;
InitializeComponent();
dataGridView1.Columns[COL_Filter].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

View File

@ -10,12 +10,8 @@ namespace LibationWinForms.Dialogs
{
public List<Account> CheckedAccounts { get; } = new List<Account>();
private Form _parent { get; }
public ScanAccountsDialog(Form parent)
public ScanAccountsDialog()
{
_parent = parent;
InitializeComponent();
this.SetLibationIcon();
}
@ -44,7 +40,7 @@ namespace LibationWinForms.Dialogs
private void editBtn_Click(object sender, EventArgs e)
{
if (new AccountsDialog(_parent).ShowDialog() == DialogResult.OK)
if (new AccountsDialog().ShowDialog() == DialogResult.OK)
{
// clear grid
this.accountsClb.Items.Clear();

View File

@ -312,7 +312,7 @@ namespace LibationWinForms
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");
new AccountsDialog(this).ShowDialog();
new AccountsDialog().ShowDialog();
}
private async void scanLibraryToolStripMenuItem_Click(object sender, EventArgs e)
@ -331,7 +331,7 @@ namespace LibationWinForms
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)
return;
@ -368,7 +368,7 @@ namespace LibationWinForms
// selectively remove books from some accounts
private void removeSomeAccountsToolStripMenuItem_Click(object sender, EventArgs e)
{
using var scanAccountsDialog = new ScanAccountsDialog(this);
using var scanAccountsDialog = new ScanAccountsDialog();
if (scanAccountsDialog.ShowDialog() != DialogResult.OK)
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
#region Visible Books menu
@ -620,7 +620,7 @@ namespace LibationWinForms
#endregion
#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();