private void SetStartEndTime(ClockIn clockIn) { if (clockIn != null) { StartTime = clockIn.Start.ToString("HH:mm:ss"); if (!clockIn.IsOpen()) { EndTime = clockIn.End.ToString("HH:mm:ss"); } } }
private void SetButtonState(ClockIn clockIn) { if (clockIn != null) { if (clockIn.IsOpen()) { GoToState(REGISTER_OUT_STATE); } else { GoToState(REGISTER_DISABLED); } } }