This commit is contained in:
2022-06-18 02:19:22 +00:00
parent 1891a6dab7
commit 6b4b25040d
3 changed files with 10 additions and 4 deletions

View File

@@ -186,6 +186,7 @@
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
this.exitToolStripMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// cbCustomersWithInvoiceableWorkorders
//

View File

@@ -42,5 +42,10 @@ namespace AyaNovaQBI
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
Close();
}
}
}

View File

@@ -13,8 +13,8 @@ namespace AyaNovaQBI
{
var random = new Random();
var l = new List<InvoiceableItem>();
for (int i = 0; i < 10; i++)
l.Add(new InvoiceableItem { CustomerId = 1, Linked = random.Next(2) == 1, Project = "project blah", ServiceDate = DateTime.Now.ToString("s"), ServiceNumber = (40+i).ToString(), Status = "Waiting to be invoiced and just sitting there otherwise", StatusColor = "FF00FFAA", WorkorderId = 4 });
for (int i = 1; i < 100; i++)
l.Add(new InvoiceableItem { CustomerId = 1, Linked = random.Next(2) == 1, Project = $"project {i}", ServiceDate = DateTime.Now.ToString("s"), ServiceNumber = (40+i).ToString(), Status = "Waiting to be invoiced and just sitting there otherwise", StatusColor = "FF00FFAA", WorkorderId = 4 });
return l;
}
@@ -22,8 +22,8 @@ namespace AyaNovaQBI
public static List<NameIdItem> GetCustomersWithInvoiceableItems()
{
var l = new List<NameIdItem>();
for (int i = 0; i < 10; i++)
l.Add(new NameIdItem { Id = i, Name = "Customer " + i.ToString() });
for (int i = 1; i < 100; i++)
l.Add(new NameIdItem { Id = i, Name = $"Customer {i}"});
return l;
}
}