async void LoggingSessionScenario_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"));
     }
 }
示例#2
0
 async void LoggingSessionScenario_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"));
     }
 }