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.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||||
this.grid.Size = new System.Drawing.Size(790, 450);
|
this.grid.Size = new System.Drawing.Size(790, 450);
|
||||||
this.grid.TabIndex = 3;
|
this.grid.TabIndex = 3;
|
||||||
|
this.grid.Visible = false;
|
||||||
this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting);
|
this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting);
|
||||||
//
|
//
|
||||||
// customer
|
// customer
|
||||||
|
|||||||
@@ -25,9 +25,13 @@ namespace AyaNovaQBI
|
|||||||
if (await util.InitializeQBI(initErrors) == false)
|
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()}"));
|
await Task.Run(() => MessageBox.Show($"AyaNova QBI was unable to start:\r\n{initErrors.ToString()}"));
|
||||||
|
}
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
grid.Visible = true;
|
||||||
|
|
||||||
// grid.DataSource = util.GetInvoiceableItems();
|
// grid.DataSource = util.GetInvoiceableItems();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNovaQBI
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Do not modify the definition of BuildAt as your changes will be discarded.
|
/// Do not modify the definition of BuildAt as your changes will be discarded.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public static DateTime BuildAt { get { return new DateTime(637915880684659436); } } //--**
|
public static DateTime BuildAt { get { return new DateTime(637915929965140980); } } //--**
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The program that time stamped it.
|
/// The program that time stamped it.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace AyaNovaQBI
|
|||||||
internal static AyaNovaLicense ALicense { get; set; } = null;
|
internal static AyaNovaLicense ALicense { get; set; } = null;
|
||||||
|
|
||||||
internal static Integration QBIntegration { 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Get license
|
//Get license
|
||||||
var r = await GetAsync("license");
|
var r = await GetAsync("license");
|
||||||
ALicense = r.ObjectResponse["data"]["license"].ToObject<AyaNovaLicense>();
|
ALicense = r.ObjectResponse["data"]["license"].ToObject<AyaNovaLicense>();
|
||||||
@@ -528,6 +530,7 @@ namespace AyaNovaQBI
|
|||||||
if (!await IntegrationCheck(initErrors))
|
if (!await IntegrationCheck(initErrors))
|
||||||
return false;
|
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
|
//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");
|
await IntegrationLog("Test: boot up");
|
||||||
|
|||||||
Reference in New Issue
Block a user