Beispiel #1
0
 private void button_Installsoftware_Click(object sender, RoutedEventArgs e)
 {
     if (computer != null)
     {
         SoftwareDeploymentWindow softwareDeployment = new SoftwareDeploymentWindow(mainWindow.errorHandler, new List <Computer>()
         {
             computer
         });
         softwareDeployment.Left = mainWindow.Left + 50;
         softwareDeployment.Top  = mainWindow.Top + 50;
         softwareDeployment.Show();
     }
 }
Beispiel #2
0
        private void button_Installsoftware_Click(object sender, RoutedEventArgs e)
        {
            List <Computer> toInstallSoftwareOn = computers.FindAll(c => c.isAlive);

            // If a least one computer is alive
            if (toInstallSoftwareOn.Count > 0)
            {
                SoftwareDeploymentWindow softwareDeployment = new SoftwareDeploymentWindow(mainWindow.errorHandler, toInstallSoftwareOn);
                softwareDeployment.Left = mainWindow.Left + 50;
                softwareDeployment.Top  = mainWindow.Top + 50;
                softwareDeployment.Show();
            }
        }