Closed chri55w closed 8 years ago
Modified Resuming TimeLog to first check if it is Exported and confirm the users choice
if (MatchingLogForType.First().Exported)
{
MessageDialogResult result = await DialogCoordinator.Instance.ShowMessageAsync(this, "Time Log Already Exported",
"Starting this Timer will modify an already
exported Time Log, the Log will be reset to
not exported. Are you sure you want to
resume this Timer?",
MessageDialogStyle.AffirmativeAndNegative,
DialogSettings("Resume", "Cancel"));
if (result == MessageDialogResult.Affirmative)
{
MatchingLogForType.First().Exported = false;
logID = MatchingLogForType.First().TimeLogID;
}
}
Playing an already exported timer has no visual effect (excluding the play button changing to a pause button). When playing the timer and choosing to "Resume" a Time Log, IF the time log is "Exported" then prompt the user to confirm they wish to continue. IF they choose to continue set "Exported" to FALSE