Exemplo n.º 1
0
 public void VerifyEngineDirectory()
 {
     if (FileOpener.IsDirectoryEmpty("\\engines"))
     {
         bool downloadEngines = MessageBox.Show(
             "No engine files are available. Do you want VMSpc to automatically download them now (requires internet connection)?",
             "No Engine Files",
             MessageBoxButton.YesNo,
             MessageBoxImage.Question
             ) == MessageBoxResult.Yes;
         if (downloadEngines)
         {
             if (EngineDownloader.DownloadEngines())
             {
                 MessageBox.Show("Successfully downloaded Engines");
             }
             else
             {
                 MessageBox.Show("Failed to download Engines. Verify that you have internet connection.");
             }
         }
     }
 }
Exemplo n.º 2
0
        public void GetEngine()
        {
            var downloader = new EngineDownloader();

            downloader.Launch();
        }