chri55w / QuickBooks-Timer

Savantech QuickBooks Timer - Issue Tracking / Wiki ONLY
3 stars 0 forks source link

Play Timer - Already Exported #44

Closed chri55w closed 8 years ago

chri55w commented 8 years ago

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

chri55w commented 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;
    }
}