Example #1
0
 public static bool IsSessionReady(this RemoteRenderingServiceStatus status)
 {
     return(status == RemoteRenderingServiceStatus.SessionReadyAndConnected ||
            status == RemoteRenderingServiceStatus.SessionReadyAndConnecting ||
            status == RemoteRenderingServiceStatus.SessionReadyAndConnectionError ||
            status == RemoteRenderingServiceStatus.SessionReadyAndDisconnected);
 }
Example #2
0
 private void RemoteRendering_StatusChanged(RemoteRenderingServiceStatus newStatus)
 {
     if (newStatus != RemoteRenderingServiceStatus.Unknown)
     {
         _remoteRenderingService.StatusChanged -= RemoteRendering_StatusChanged;
         // Enable button
         UploadModelButton.IsEnabled = true;
     }
     else
     {
         // Disable button
         UploadModelButton.IsEnabled = false;
     }
 }