This commit is contained in:
2022-06-23 21:57:48 +00:00
parent 55e58e0697
commit c1b8d820b3
4 changed files with 10 additions and 2 deletions

View File

@@ -228,6 +228,7 @@
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.Size = new System.Drawing.Size(790, 450);
this.grid.TabIndex = 3;
this.grid.Visible = false;
this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting);
//
// customer

View File

@@ -24,10 +24,14 @@ namespace AyaNovaQBI
StringBuilder initErrors = new StringBuilder();
if (await util.InitializeQBI(initErrors) == false)
{
if (initErrors.Length>0)
if (initErrors.Length > 0)
{
if (util.LOG_AVAILABLE) await util.IntegrationLog(initErrors.ToString());
await Task.Run(() => MessageBox.Show($"AyaNova QBI was unable to start:\r\n{initErrors.ToString()}"));
}
Close();
}
grid.Visible = true;
// grid.DataSource = util.GetInvoiceableItems();
}

View File

@@ -22,7 +22,7 @@ namespace AyaNovaQBI
/// <remarks>
/// Do not modify the definition of BuildAt as your changes will be discarded.
/// </remarks>
public static DateTime BuildAt { get { return new DateTime(637915880684659436); } } //--**
public static DateTime BuildAt { get { return new DateTime(637915929965140980); } } //--**
/// <summary>
/// The program that time stamped it.
/// </summary>

View File

@@ -38,6 +38,7 @@ namespace AyaNovaQBI
internal static AyaNovaLicense ALicense { get; set; } = null;
internal static Integration QBIntegration { get; set; } = null;
internal static bool LOG_AVAILABLE { get; set; } = false;
@@ -487,6 +488,7 @@ namespace AyaNovaQBI
return false;
}
//Get license
var r = await GetAsync("license");
ALicense = r.ObjectResponse["data"]["license"].ToObject<AyaNovaLicense>();
@@ -528,6 +530,7 @@ namespace AyaNovaQBI
if (!await IntegrationCheck(initErrors))
return false;
LOG_AVAILABLE = true;
//todo: logger needs to be enabled for integration next in a convenient to call util method and then make it work in UI
await IntegrationLog("Test: boot up");