private async void InitialScreenSetup() { dbTransaction = DbTransaction.GetInstance(); workLog = await dbTransaction.GetLatestWorkLog(); if (workLog == null) { lblWorkStartTime.Text = ""; workLog = new WorkLog(); WorkStopState(); } else { lblWorkStartTime.Text = workLog.StartTime?.ToString("hh:mm:ss"); WorkStartState(); } breakLog = await dbTransaction.GetLatestBreakLog(); if (breakLog == null) { lblBreakStartTime.Text = ""; breakLog = new BreakLog(); BreakStopState(); } else { lblBreakStartTime.Text = breakLog.StartTime?.ToString("hh:mm:ss"); BreakStartState(); } }