private void Download()
{
if (this.DownloadUrl == null)
{
throw new ThemeInstallException("Could not download theme because supplied URL is invalid or missing.");
}
using (var client = new WebClient())
{
try
{
client.DownloadFile(this.DownloadUrl, this.ArchivePath);
}
catch (WebException ex)
{
throw new ThemeInstallException(ex.Message, ex);
}
}
}