private void ButtonGo_OnClick(object sender, RoutedEventArgs e) { // TODO: Uncomment //GamesList.IsEnabled = false; foreach (var nameSizePair in _checkedGamesList) { DownloadTaskQueue.GetInstance().QueueJob( GameProviderSingleton.GetInstance().Active, nameSizePair.Name, _client, _targetClientIp, new AsyncPack { ToExecute = new DelProgress(Progress) + UnlockGamesList, Window = this }); } }
private void Application_Exit(object sender, ExitEventArgs e) { // Perform tasks at application exit DownloadTaskQueue.GetInstance().ForceStop(); FtpManager.GetInstance().StopFtp(); }