Added a waiting room and now the checkouts also take the number of people waiting in count for when to open

This commit is contained in:
2023-01-11 16:06:47 +01:00
parent 780f9a8c28
commit a891033a25
5 changed files with 71 additions and 62 deletions
+6 -1
View File
@@ -17,7 +17,7 @@ namespace Caisses
{
InitializeComponent();
DoubleBuffered = true;
store = new GraphicalStore(20,12,pbxRayons.Size,pbxCaisses.Size);
store = new GraphicalStore(10,12,pbxRayons.Size,pbxCaisses.Size,pbxWaitRoom.Size);
}
private void btnStartStop_Click(object sender, EventArgs e)
@@ -53,8 +53,13 @@ namespace Caisses
{
pbxCaisses.Image.Dispose();
}
if (pbxWaitRoom.Image != null)
{
pbxWaitRoom.Image.Dispose();
}
pbxRayons.Image = result[0];
pbxCaisses.Image = result[1];
pbxWaitRoom.Image = result[2];
lblClients.Text = "Clients : " + store.Clients.Count();
lblClientsWithoutCheckout.Text = "Clients without checkout : "+ store.WaitingClients.Count();