adding clock in break and out command

This commit is contained in:
Tim G. | SnapixLP
2025-06-06 02:01:54 +02:00
parent 2645d698d7
commit 536de50e4c
6 changed files with 280 additions and 105 deletions

View File

@@ -81,6 +81,27 @@ public class Tester
$"Forename: {employee.Forename}",
});
}
else if (command == "clock in")
{
string response = await server.ClockIn();
// split response into string[] at \n
var responseLines = response.Split('\n').ToList();
await messageBox.ShowAsync("Command Result: clock in", responseLines);
}
else if (command == "clock out")
{
string response = await server.ClockOut();
// split response into string[] at \n
var responseLines = response.Split('\n').ToList();
await messageBox.ShowAsync("Command Result: clock out", responseLines);
}
else if (command == "clock break")
{
string response = await server.ClockBreak();
// split response into string[] at \n
var responseLines = response.Split('\n').ToList();
await messageBox.ShowAsync("Command Result: clock break", responseLines);
}
}
catch (Exception ex)
{