Ejemplo n.º 1
0
 private void ScanRailworks_Click(object sender, RoutedEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         ScanRailworks.IsEnabled           = false;
         SelectRailworksLocation.IsEnabled = false;
         TotalProgress.Value = 0;
     });
     loadingComplete = false;
     RW.getAllInstalledDepsEvent.Reset();
     new Task(() =>
     {
         RW.GetInstalledDeps();
     }).Start();
     if (!crawlingComplete)
     {
         crawlingComplete = false;
         RW.RunAllCrawlers();
     }
     else
     {
         new Task(() =>
         {
             RW_CrawlingComplete();
         }).Start();
     }
 }
Ejemplo n.º 2
0
 private void ScanRailworks_Click(object sender, RoutedEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         ScanRailworks.IsEnabled           = false;
         SelectRailworksLocation.IsEnabled = false;
         TotalProgress.Value = 0;
     });
     loadingComplete = false;
     if (!crawlingComplete)
     {
         crawlingComplete = false;
         RW.RunAllCrawlers();
     }
     else
     {
         RW_CrawlingComplete();
     }
 }