void ucDownload_DownloadClosed(object sender, RoutedEventArgs e) { try { // Start the download thread if not already running if (dlthread == null) { DownloadThread downloadthread = new DownloadThread(); dlthread = new Thread(downloadthread.DownloadThreadWorker); dlthread.Start(); } // Hide the cursor if applicable if (Helpers.PlayerSettings.GetPlayerSetting("ShowCursor").PlayerSettingValue.ToLower() == "true") this.Cursor = Cursors.Arrow; else this.Cursor = Cursors.None; // Load the Current Screen and Display It LoadCurrentScreen(DateTime.Now, true); // Start the timers heartbeat.Start(); screencheck.Start(); } catch { } }
void ucDownload_DownloadClosed(object sender, RoutedEventArgs e) { try { // Start the download thread if not already running if (dlthread == null) { DownloadThread downloadthread = new DownloadThread(); dlthread = new Thread(downloadthread.DownloadThreadWorker); dlthread.Start(); } // Load the Current Screen and Display It LoadCurrentScreen(DateTime.Now, true); // Start the timers heartbeat.Start(); screencheck.Start(); } catch { } }