Subversion Repositories spk

Rev

Rev 161 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 163
Line 474... Line 474...
474
		}
474
		}
475
 
475
 
476
		CheckUpdate ^update = gcnew CheckUpdate(m_pPackages, m_pImageList);
476
		CheckUpdate ^update = gcnew CheckUpdate(m_pPackages, m_pImageList);
477
		update->SetDownloader();
477
		update->SetDownloader();
478
		update->OnePackage(m_pSelectedPackage);
478
		update->OnePackage(m_pSelectedPackage);
479
		if ( update->ShowDialog(this) == Windows::Forms::DialogResult::OK )
479
		if (update->ShowDialog(this) == Windows::Forms::DialogResult::OK)
480
		{
480
		{
481
			this->DialogResult = Windows::Forms::DialogResult::Yes;
481
			this->DialogResult = Windows::Forms::DialogResult::Yes;
482
			for ( int i = 0; i < update->GetInstallList()->Count; i++ )
482
			for (int i = 0; i < update->GetInstallList()->Count; i++)
483
				cli::safe_cast<MainGui ^>(this->Owner)->InstallPackage(Convert::ToString(update->GetInstallList()[i]), false, false, true);
483
				cli::safe_cast<MainGui^>(this->Owner)->InstallPackage(Convert::ToString(update->GetInstallList()[i]), false, false, true);
484
			this->Close();
484
			this->Close();
485
		}
485
		}
-
 
486
		else
-
 
487
		{
-
 
488
			m_pMainGui->FindPackages();
-
 
489
			this->UpdatePackages();
-
 
490
		}
-
 
491
 
486
	}
492
	}
487
 
493
 
488
}
494
}