Пример #1
0
 private void backgroundWorker2_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
 {
     if (SeatKiller.CheckUpdate())
     {
         backgroundWorker1.CancelAsync();
         backgroundWorker2.ReportProgress(100);
     }
 }
Пример #2
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     if (SeatKiller.CheckUpdate())
     {
         Cursor = Cursors.Default;
         Update update = new Update();
         update.ShowDialog();
     }
     else
     {
         Cursor = Cursors.Default;
         MessageBox.Show("当前版本已是最新版", "提示");
     }
 }