Exemplo n.º 1
0
 public async Task Toggle()
 {
     if (LoggingStatus == LoggingStatus.Paused)
     {
         isPaused       = false;
         StartTime      = startTime.ToString("HH:mm");
         StartTimeLabel = UIStrings.StartTimeLabel;
         LoggingStatus  = LoggingStatus.Running;
         logMngr.AddLog(new Log
         {
             Severity = LogSeverity.Medium,
             Type     = LogType.LoggerStarted,
             Text     = "Logger Started Manually."
         });
     }
     else if (LoggingStatus == LoggingStatus.Running)
     {
         await DialogHost.Show(new PauseDialogView(_eventAggregator), "RootDialog");
     }
 }