This commit is contained in:
2022-06-22 02:31:12 +00:00
parent 0cba94f582
commit 9e51fc18f9
4 changed files with 24 additions and 17 deletions

View File

@@ -21,12 +21,15 @@ namespace AyaNovaQBI
{
//Initialize
if(await util.InitializeQBI() == false)
StringBuilder initErrors = new StringBuilder();
if (await util.InitializeQBI(initErrors) == false)
{
if (initErrors.Length>0)
await Task.Run(() => MessageBox.Show($"AyaNova QBI was unable to start:\r\n{initErrors.ToString()}"));
Close();
}
// grid.DataSource = util.GetInvoiceableItems();
// grid.DataSource = util.GetInvoiceableItems();
}
private void grid_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
@@ -39,7 +42,8 @@ namespace AyaNovaQBI
if (!isLinked)
{
grid.Rows[e.RowIndex].ErrorText = "Not invoiceable: use \"Invoice\" -> \"Fix problems\" to resolve";
}else
}
else
{
grid.Rows[e.RowIndex].ErrorText = null;
}