private void FormLaunchWeb_Load(object sender, EventArgs e) { var iisexpress = new IISExpressManager(); if (!iisexpress.IsInstalled) { panelError.Location = new Point(12, 76); panelError.Visible = true; WireControlMove(panelError); return; } var deployment = new DeploymentManager(Program.Path); var productList = deployment.Products; productList.Reverse(); foreach (var prod in productList.Where(prod => prod != "argos-saleslogix")) { AddProduct(prod); } if (productList.Contains("argos-saleslogix")) { AddProduct("argos-saleslogix"); } labelPath.Text = string.Format("Path: {0}", Program.Path); toolTip1.SetToolTip(labelPath, "Mobile Environment Path:\r\n" + Program.Path); }
private void prodCtrl_ProductOptionSelected(object sender, EventArgs e) { Program.Port = textPort.Text; var iisexpress = new IISExpressManager(); var prodCtrl = (ProductControl)sender; string url = string.Format("http://localhost:{0}/products/argos-saleslogix/index{1}{2}{3}.html", Program.Port, (prodCtrl.SelectedConfiguration != string.Empty ? "-" : ""), prodCtrl.SelectedConfiguration, (prodCtrl.ArgosProduct != "argos-saleslogix" ? prodCtrl.ArgosProduct.ToLower().Replace("argos", "") : "")); using (var iis = new IISExpressAutomation.IISExpress(new IISExpressAutomation.Parameters { Path = "\"" + Program.Path + "\"", Port = int.Parse(Program.Port) }, iisexpress.ExecutablePath)) { try { System.Diagnostics.Process.Start(url); } catch { } } }