mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-10-16 11:04:54 +02:00
adding clock in break and out command
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user