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 void UseSession(Session session) { SendStatistics.Send(session, ghostVRConnector); }