コード例 #1
0
 private void InstallSelectedApplications()
 {
     using (InstallingApplicationsDialog setupDialog = new InstallingApplicationsDialog())
     {
         setupDialog.Applications = olvJobs.SelectedApplications;
         setupDialog.ShowDialog(this);
     }
 }
コード例 #2
0
 private void cmnuUpdateInstall_Click(object sender, EventArgs e)
 {
     using (InstallingApplicationsDialog setupDialog = new InstallingApplicationsDialog())
     {
         setupDialog.Applications       = olvJobs.SelectedApplications;
         setupDialog.UpdateApplications = true;
         setupDialog.ShowDialog(this);
     }
 }
コード例 #3
0
 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);
             }
         }
     }
 }