private void MainWindow_Loaded(object sender, RoutedEventArgs e) { if (FirstTimeOpen()) { InsertHelpLists(); } UpdateChecker updateChecker = new UpdateChecker(this, true); Thread checkUpdateThread = new Thread(updateChecker.Check); checkUpdateThread.Start(); }
/// <summary> /// 检查更新 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CheckUpdate_Click(object sender, RoutedEventArgs e) { UpdateChecker updateChecker = new UpdateChecker(this, false); Thread checkUpdateThread = new Thread(updateChecker.Check); checkUpdateThread.Start(); }