コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: CivilPol/Vodigi
        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 { }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: rtegarp/TugasAkhir
        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 { }
        }