This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user