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.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "QuickBooks Company file";
this.TopMost = true;
this.Load += new System.EventHandler(this.ApproveCompanyFile_Load);
this.ResumeLayout(false);

View File

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

View File

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

View File

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