protected SendStatistics(Session session, GhostVRConnector ghostVRConnector)
 {
     logger = ghostVRConnector.logger;
     InitializeComponent();
     close.Click  += (s, e) => Close();
     cancel.Click += (s, e) => Close();
     uiMode        = UIMode.loading;
     ghostVRConnector.VideoSession(session, SessionSendSuccess, SessionSendFailure);
 }
 internal static void Send(Session session, GhostVRConnector ghostVRConnector)
 {
     Execute.OnUIThreadAsync(() =>
     {
         var ss = new SendStatistics(session, ghostVRConnector);
         // fix: when main window is closed, but another window is still active, app would not turn off without this
         if (ShellViewModel.Instance.shellView.IsActive)
         {
             ss.Owner = ShellViewModel.Instance.shellView;
         }
         ss.ShowDialog();
     });
 }
 public GhostVRSessionSink(GhostVRConnector ghostVRConnector)
 {
     this.ghostVRConnector = ghostVRConnector;
 }