This commit is contained in:
2022-07-01 21:31:49 +00:00
parent 2db399fe95
commit 0bf27c88be
4 changed files with 5 additions and 5 deletions

View File

@@ -102,6 +102,7 @@
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "QuickBooks Company file"; this.Text = "QuickBooks Company file";
this.TopMost = true;
this.Load += new System.EventHandler(this.ApproveCompanyFile_Load); this.Load += new System.EventHandler(this.ApproveCompanyFile_Load);
this.ResumeLayout(false); this.ResumeLayout(false);

View File

@@ -318,6 +318,7 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Name = "MainForm"; this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "AyaNova QBI"; this.Text = "AyaNova QBI";
this.Load += new System.EventHandler(this.MainForm_Load); this.Load += new System.EventHandler(this.MainForm_Load);
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);

View File

@@ -53,7 +53,7 @@ namespace AyaNovaQBI
if (string.IsNullOrWhiteSpace(_selectedQBInvoiceTemplate)) if (string.IsNullOrWhiteSpace(_selectedQBInvoiceTemplate))
cbQBItems.SelectedIndex = 0; cbQBItems.SelectedIndex = 0;
else else
this.cbQBItems.SelectedValue = _selectedQBInvoiceTemplate; cbQBItems.SelectedValue = _selectedQBInvoiceTemplate;
} }

View File

@@ -47,10 +47,8 @@ namespace AyaNovaQBI
cbQBTerms.DataSource = QBTerms; cbQBTerms.DataSource = QBTerms;
cbQBTerms.DisplayMember = "FullName"; cbQBTerms.DisplayMember = "FullName";
cbQBTerms.ValueMember = "ID"; cbQBTerms.ValueMember = "ID";
if (SelectedQBTerm == "") if (!string.IsNullOrWhiteSpace(_selectedQBTerm))
cbQBTerms.SelectedIndex = 0; cbQBTerms.SelectedValue = _selectedQBTerm;
else
this.cbQBTerms.SelectedValue = SelectedQBTerm;
lblStatus.Text = "QuickBooks invoice terms default"; lblStatus.Text = "QuickBooks invoice terms default";