using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace DarkWynter.Shell { public partial class Installer : UserControl { public Installer() { InitializeComponent(); } #region Pre-requisite Software Installation private void buttonDownloadDotNet_Click(object sender, EventArgs e) { LaunchWebClient("http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en"); } private void buttonDownloadDirectX_Click(object sender, EventArgs e) { LaunchWebClient("http://www.microsoft.com/downloads/details.aspx?FamilyID=9226a611-62fe-4f61-aba1-914185249413&displaylang=en"); } private void buttonDownloadXNA_Click(object sender, EventArgs e) { LaunchWebClient("http://www.microsoft.com/downloads/details.aspx?FamilyID=15fb9169-4a25-4dca-bf40-9c497568f102&displaylang=en"); } private static void LaunchWebClient(string httpAddress) { System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; // Launch Website proc.StartInfo.FileName = "iexplore"; proc.StartInfo.Arguments = httpAddress; proc.Start(); } #endregion } }