This commit is contained in:
1
AyaNovaQBI/MainForm.Designer.cs
generated
1
AyaNovaQBI/MainForm.Designer.cs
generated
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user