private void bInstall_Click(object sender, EventArgs e) { using (ChooseAppsToInstallDialog dialog = new ChooseAppsToInstallDialog()) { if (dialog.ShowDialog(this) == DialogResult.OK) { using (InstallingApplicationsDialog setupDialog = new InstallingApplicationsDialog()) { setupDialog.UpdateApplications = dialog.ShouldUpdateApplications; setupDialog.Applications = dialog.SelectedApplications; setupDialog.ShowDialog(this); } } } }
private void cmnuUpdateInstall_Click(object sender, EventArgs e) { using (InstallingApplicationsDialog setupDialog = new InstallingApplicationsDialog()) { setupDialog.Applications = olvJobs.SelectedApplications; setupDialog.UpdateApplications = true; setupDialog.ShowDialog(this); } }
private void InstallSelectedApplications() { using (InstallingApplicationsDialog setupDialog = new InstallingApplicationsDialog()) { setupDialog.Applications = olvJobs.SelectedApplications; setupDialog.ShowDialog(this); } }