Beispiel #1
0
 private void CheckAndDownloadMasterData(bool IsStartUp, bool IsManually)
 {
     Thread updateThread = new Thread(new System.Threading.ThreadStart(delegate
     {
         MasterDataUpdate masterUpdate = new MasterDataUpdate();
         masterUpdate.LatestVersionConfirmed += new MasterDataUpdate.LatestVersionConfirmedEventHandler(masterUpdate_LatestVersionConfirmed);
         masterUpdate.NewVersionFound += new MasterDataUpdate.NewVersionFoundEventHandler(masterUpdate_NewVersionFound);
         masterUpdate.CheckVersion(IsStartUp, IsManually);
     }));
     updateThread.IsBackground = true;
     updateThread.Start();
 }