This commit is contained in:
2022-07-07 20:15:36 +00:00
parent 217206c687
commit 06cd7752d3
2 changed files with 26 additions and 19 deletions

View File

@@ -28,8 +28,8 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.invoicesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.invoicesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
@@ -41,7 +41,7 @@
this.preferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.preferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mapAndImportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mapAndImportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.invoiceDescriptiveTextTemplateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.invoiceDescriptiveTextTemplateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.refreshQuickBooksConnectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.refreshCachedDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.onlineManualToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.onlineManualToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -127,7 +127,7 @@
this.preferencesToolStripMenuItem, this.preferencesToolStripMenuItem,
this.mapAndImportToolStripMenuItem, this.mapAndImportToolStripMenuItem,
this.invoiceDescriptiveTextTemplateToolStripMenuItem, this.invoiceDescriptiveTextTemplateToolStripMenuItem,
this.refreshQuickBooksConnectionToolStripMenuItem}); this.refreshCachedDataToolStripMenuItem});
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(46, 20); this.toolsToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
this.toolsToolStripMenuItem.Text = "&Tools"; this.toolsToolStripMenuItem.Text = "&Tools";
@@ -152,11 +152,12 @@
this.invoiceDescriptiveTextTemplateToolStripMenuItem.Size = new System.Drawing.Size(245, 22); this.invoiceDescriptiveTextTemplateToolStripMenuItem.Size = new System.Drawing.Size(245, 22);
this.invoiceDescriptiveTextTemplateToolStripMenuItem.Text = "&Invoice descriptive text template"; this.invoiceDescriptiveTextTemplateToolStripMenuItem.Text = "&Invoice descriptive text template";
// //
// refreshQuickBooksConnectionToolStripMenuItem // refreshCachedDataToolStripMenuItem
// //
this.refreshQuickBooksConnectionToolStripMenuItem.Name = "refreshQuickBooksConnectionToolStripMenuItem"; this.refreshCachedDataToolStripMenuItem.Name = "refreshCachedDataToolStripMenuItem";
this.refreshQuickBooksConnectionToolStripMenuItem.Size = new System.Drawing.Size(245, 22); this.refreshCachedDataToolStripMenuItem.Size = new System.Drawing.Size(245, 22);
this.refreshQuickBooksConnectionToolStripMenuItem.Text = "Refresh QuickBooks connection"; this.refreshCachedDataToolStripMenuItem.Text = "Refresh cached data";
this.refreshCachedDataToolStripMenuItem.Click += new System.EventHandler(this.refreshCachedDataToolStripMenuItem_Click);
// //
// helpToolStripMenuItem // helpToolStripMenuItem
// //
@@ -194,17 +195,17 @@
this.grid.AllowUserToAddRows = false; this.grid.AllowUserToAddRows = false;
this.grid.AllowUserToDeleteRows = false; this.grid.AllowUserToDeleteRows = false;
this.grid.AllowUserToResizeRows = false; this.grid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
this.grid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.grid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.customer, this.customer,
@@ -336,7 +337,7 @@
private System.Windows.Forms.ToolStripMenuItem preferencesToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem preferencesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem mapAndImportToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem mapAndImportToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem invoiceDescriptiveTextTemplateToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem invoiceDescriptiveTextTemplateToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem refreshQuickBooksConnectionToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem refreshCachedDataToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem onlineManualToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem onlineManualToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;

View File

@@ -147,5 +147,11 @@ namespace AyaNovaQBI
{ {
util.OpenWebURL("https://ayanova.com/qbi/docs"); util.OpenWebURL("https://ayanova.com/qbi/docs");
} }
private async void refreshCachedDataToolStripMenuItem_Click(object sender, EventArgs e)
{
await util.PopulateQBListCache();
await util.PopulateAyaListCache();
}
} }
} }