Beispiel #1
0
 void beatmap_DownloadFinished(object sender, DownloadEventArgs e)
 {
     _progressForm.Close();
     Process.Start(e.FileName);
     _synth.SpeakAsyncCancelAll();
     _synth.SpeakAsync("Congratulation! Beatmap Downloaded Successfully!");
     _progressTimer.Stop();
     _canSpeak    = true;
     _downloading = String.Empty;
 }
Beispiel #2
0
 void beatmap_ProgressChanged(object sender, DownloadEventArgs e)
 {
     _progressForm.SetProgress(e.Progress);
     if (_canSpeak)
     {
         _synth.SpeakAsyncCancelAll();
         _synth.SpeakAsync(e.Progress + "% Downloaded!");
         _canSpeak = false;
         _progressTimer.Start();
     }
 }