mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2026-11-26 19:34:35 +01:00
adding clock in break and out command
This commit is contained in:
1 parent
2645d698d7
commit
536de50e4c
6 files changed
+280
-105
No files matched your search
@@ -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