public void CheckForUpdates() { try { if (CheckIfVPMobileIsRunning()) { MessageBox.Show("Vantage Points Mobile is already running. Please use that instance."); Close(); } CurrentFile = "Pulling file information from server"; MobileService.GetMainUpdateFileListAsync(); } catch (EndpointNotFoundException ex) { OnNetworkDisconnect(ex); } catch (Exception ex) { MessageBox.Show(ex.ToString()); var message = "Error checking file"; Logging.LogMessage(Logging.LogType.Error, message, ex); CurrentFile = ""; Dispatcher.Invoke(() => Close()); } }