Beispiel #1
0
 async void LoggingScenario_StatusChanged(object sender, LoggingScenarioEventArgs e)
 {
     if (e.Type == LoggingScenarioEventType.BusyStatusChanged)
     {
         UpdateControls();
     }
     else if (e.Type == LoggingScenarioEventType.LogFileGenerated)
     {
         await AddLogFileMessageDispatch("LogFileGenerated", e.LogFilePath);
     }
     else if (e.Type == LoggingScenarioEventType.LoggingEnabledDisabled)
     {
         await AddMessageDispatch(string.Format("Logging has been {0}.", e.Enabled ? "enabled" : "disabled"));
     }
 }
 async void LoggingScenario_StatusChanged(object sender, LoggingScenarioEventArgs e)
 {
     if (e.Type == LoggingScenarioEventType.BusyStatusChanged)
     {
         UpdateControls();
     }
     else if (e.Type == LoggingScenarioEventType.LogFileGenerated)
     {
         await AddLogFileMessageDispatch("LogFileGenerated", e.LogFilePath);
     }
     else if (e.Type == LoggingScenarioEventType.LoggingEnabledDisabled)
     {
         await AddMessageDispatch(string.Format("Logging has been {0}.", e.Enabled ? "enabled" : "disabled"));
     }
 }