private void buttonAppsNew_Click(object sender, EventArgs e) { if (MyEC2.Status == ZAwsEc2.Ec2Status.Running) { DlgNewApp dlg = new DlgNewApp(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { MyEC2.InstallApp(dlg.textBoxGitApp.Text, dlg.textBoxGitAppUrl.Text, dlg.textBoxGitAppLocation.Text, dlg.comboBoxGitAppType.SelectedIndex == 0 ? ZAwsEc2.ApplicationType.RAILS_APP : ZAwsEc2.ApplicationType.GENERIC, dlg.checkBoxGitAppDnsRecord.Checked, dlg.checkBoxGitAppDefaultServerApp.Checked); RefreshApps(false); Program.TraceLine("Succesfuly installed app {0}. Note: you still need to restart the web server for the changes to take place.", dlg.textBoxGitApp.Text); } catch (Exception ex) { Program.TraceLine("Error installing new app, reason: {0}.", ex); } } } }