Final walkthrough tweaks
This commit is contained in:
parent
e365ba7296
commit
3681c0f18f
@ -16,6 +16,9 @@ namespace LibationAvalonia.Views
|
||||
public async void aboutToolStripMenuItem_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
||||
=> await MessageBox.Show($"Libation {AppScaffolding.LibationScaffolding.Variety}{Environment.NewLine}Version {AppScaffolding.LibationScaffolding.BuildVersion}", $"Libation v{AppScaffolding.LibationScaffolding.BuildVersion}");
|
||||
|
||||
public async void tourToolStripMenuItem_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
||||
=> await new Walkthrough(this).RunAsync();
|
||||
|
||||
public void launchHangoverToolStripMenuItem_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
|
||||
@ -128,6 +128,7 @@
|
||||
<MenuItem Click="openTrashBinToolStripMenuItem_Click" Header="Trash Bin" />
|
||||
<MenuItem Click="launchHangoverToolStripMenuItem_Click" Header="Launch _Hangover" />
|
||||
<Separator />
|
||||
<MenuItem Click="tourToolStripMenuItem_Click" Header="Take a Guided _Tour of Libation" />
|
||||
<MenuItem Click="aboutToolStripMenuItem_Click" Header="A_bout..." />
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
|
||||
@ -41,7 +41,7 @@ namespace LibationAvalonia
|
||||
|
||||
private async Task<bool> ShowAccountDialog()
|
||||
{
|
||||
if (await OkCancelMessageBox("First, add you Audible account(s).", "Add Accounts") is not DialogResult.OK) return false;
|
||||
if (await OkCancelMessageBox("First, add your Audible account(s).", "Add Accounts") is not DialogResult.OK) return false;
|
||||
|
||||
await Task.Delay(750);
|
||||
await flashControlAsync(MainForm.settingsToolStripMenuItem);
|
||||
@ -134,9 +134,11 @@ namespace LibationAvalonia
|
||||
await flashControlAsync(MainForm.importToolStripMenuItem);
|
||||
await InvokeAsync(MainForm.importToolStripMenuItem.Open);
|
||||
await Task.Delay(500);
|
||||
|
||||
await flashControlAsync(scanItem);
|
||||
await InvokeAsync(() => scanItem.IsSelected = true);
|
||||
await Task.Delay(500);
|
||||
|
||||
await InvokeAsync(() => scanItem.RaiseEvent(new RoutedEventArgs(MenuItem.ClickEvent)));
|
||||
await InvokeAsync(MainForm.importToolStripMenuItem.Close);
|
||||
|
||||
@ -181,6 +183,7 @@ namespace LibationAvalonia
|
||||
await flashControlAsync(MainForm.filterBtn);
|
||||
await InvokeAsync(MainForm.filterBtn.Focus);
|
||||
await Task.Delay(500);
|
||||
|
||||
await InvokeAsync(() => MainForm.filterBtn.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)));
|
||||
await Task.Delay(1000);
|
||||
|
||||
@ -204,9 +207,8 @@ namespace LibationAvalonia
|
||||
|
||||
await Task.Delay(750);
|
||||
await flashControlAsync(MainForm.addQuickFilterBtn);
|
||||
await Task.Delay(750);
|
||||
|
||||
await InvokeAsync(() => MainForm.addQuickFilterBtn.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)));
|
||||
await Task.Delay(750);
|
||||
|
||||
await flashControlAsync(MainForm.quickFiltersToolStripMenuItem);
|
||||
await InvokeAsync(MainForm.quickFiltersToolStripMenuItem.Open);
|
||||
|
||||
@ -192,7 +192,7 @@ namespace LibationFileManager
|
||||
}
|
||||
|
||||
[Description("Indicates that this is the first time Libation has been run")]
|
||||
public bool FirstLaunch { get => true; set => SetNonString(value); }
|
||||
public bool FirstLaunch { get => GetNonString(defaultValue: true); set => SetNonString(value); }
|
||||
|
||||
[Description("When liberating books and there is an error, Libation should:")]
|
||||
public BadBookAction BadBook { get => GetNonString(defaultValue: BadBookAction.Ask); set => SetNonString(value); }
|
||||
|
||||
10
Source/LibationWinForms/Form1.Designer.cs
generated
10
Source/LibationWinForms/Form1.Designer.cs
generated
@ -70,6 +70,7 @@
|
||||
this.accountsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.basicSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.upgradePb = new System.Windows.Forms.ToolStripProgressBar();
|
||||
@ -386,6 +387,7 @@
|
||||
this.openTrashBinToolStripMenuItem,
|
||||
this.launchHangoverToolStripMenuItem,
|
||||
this.toolStripSeparator2,
|
||||
this.tourToolStripMenuItem,
|
||||
this.aboutToolStripMenuItem});
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
|
||||
@ -410,6 +412,13 @@
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(130, 6);
|
||||
//
|
||||
// tourToolStripMenuItem
|
||||
//
|
||||
this.tourToolStripMenuItem.Name = "tourToolStripMenuItem";
|
||||
this.tourToolStripMenuItem.Size = new System.Drawing.Size(133, 22);
|
||||
this.tourToolStripMenuItem.Text = "Take a Guided &Tour of Libation";
|
||||
this.tourToolStripMenuItem.Click += new System.EventHandler(this.tourToolStripMenuItem_Click);
|
||||
//
|
||||
// aboutToolStripMenuItem
|
||||
//
|
||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||
@ -664,6 +673,7 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem removeAllAccountsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeSomeAccountsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
private System.Windows.Forms.ToolStripMenuItem tourToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem scanningToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem autoScanLibraryToolStripMenuItem;
|
||||
|
||||
@ -15,6 +15,9 @@ namespace LibationWinForms
|
||||
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
=> MessageBox.Show($"Libation {AppScaffolding.LibationScaffolding.Variety}{Environment.NewLine}Version {AppScaffolding.LibationScaffolding.BuildVersion}", $"Libation v{AppScaffolding.LibationScaffolding.BuildVersion}");
|
||||
|
||||
private async void tourToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
=> await new Walkthrough(this).RunAsync();
|
||||
|
||||
private void launchHangoverToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
|
||||
@ -37,7 +37,7 @@ namespace LibationWinForms
|
||||
|
||||
private async Task<bool> ShowAccountDialog()
|
||||
{
|
||||
if (OkCancelMessageBox("First, add you Audible account(s).", "Add Accounts") is not DialogResult.OK) return false;
|
||||
if (OkCancelMessageBox("First, add your Audible account(s).", "Add Accounts") is not DialogResult.OK) return false;
|
||||
|
||||
await Task.Delay(750);
|
||||
await flashControlAsync(MainForm.settingsToolStripMenuItem);
|
||||
@ -62,8 +62,8 @@ namespace LibationWinForms
|
||||
await Task.Delay(750);
|
||||
await flashControlAsync(MainForm.settingsToolStripMenuItem);
|
||||
MainForm.Invoke(MainForm.settingsToolStripMenuItem.ShowDropDown);
|
||||
|
||||
await Task.Delay(500);
|
||||
|
||||
await flashControlAsync(MainForm.basicSettingsToolStripMenuItem);
|
||||
MainForm.Invoke(MainForm.basicSettingsToolStripMenuItem.Select);
|
||||
await Task.Delay(500);
|
||||
@ -128,9 +128,11 @@ namespace LibationWinForms
|
||||
await flashControlAsync(MainForm.importToolStripMenuItem);
|
||||
MainForm.Invoke(MainForm.importToolStripMenuItem.ShowDropDown);
|
||||
await Task.Delay(500);
|
||||
|
||||
await flashControlAsync(scanItem);
|
||||
MainForm.Invoke(scanItem.Select);
|
||||
await Task.Delay(500);
|
||||
|
||||
MainForm.Invoke(scanItem.PerformClick);
|
||||
|
||||
var tcs = new TaskCompletionSource();
|
||||
@ -175,6 +177,7 @@ namespace LibationWinForms
|
||||
await flashControlAsync(MainForm.filterBtn);
|
||||
MainForm.Invoke(MainForm.filterBtn.Select);
|
||||
await Task.Delay(500);
|
||||
|
||||
MainForm.Invoke(MainForm.filterBtn.PerformClick);
|
||||
await Task.Delay(1000);
|
||||
|
||||
@ -196,24 +199,24 @@ namespace LibationWinForms
|
||||
if (OkCancelMessageBox("Queries that you perform regularly can be added to 'Quick Filters'", "Quick Filters") is not DialogResult.OK) return false;
|
||||
|
||||
MainForm.Invoke(() => MainForm.filterSearchTb.Text = firstAuthor);
|
||||
|
||||
await Task.Delay(750);
|
||||
await flashControlAsync(MainForm.addQuickFilterBtn);
|
||||
await Task.Delay(750);
|
||||
|
||||
MainForm.Invoke(MainForm.addQuickFilterBtn.PerformClick);
|
||||
await Task.Delay(750);
|
||||
|
||||
await flashControlAsync(MainForm.quickFiltersToolStripMenuItem);
|
||||
MainForm.Invoke(MainForm.quickFiltersToolStripMenuItem.ShowDropDown);
|
||||
await Task.Delay(500);
|
||||
|
||||
MainForm.Invoke(MainForm.editQuickFiltersToolStripMenuItem.Select);
|
||||
await flashControlAsync(MainForm.editQuickFiltersToolStripMenuItem);
|
||||
MainForm.Invoke(MainForm.editQuickFiltersToolStripMenuItem.Select);
|
||||
await Task.Delay(500);
|
||||
|
||||
var editQuickFilters = MainForm.Invoke(() => new EditQuickFilters());
|
||||
editQuickFilters.Shown += (_, _) => MessageBox.Show(editQuickFilters, "From here you can edit, delete, and change the order of Quick Filters", "Editing Quick Filters");
|
||||
|
||||
MainForm.Invoke(editQuickFilters.ShowDialog);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user