private void deployButton_Click(object sender, RoutedEventArgs e) { IList<IDevice> devices = new List<IDevice>(deviceList.SelectedItems.Count); foreach (IDevice device in deviceList.SelectedItems) { devices.Add(device); } DeploymentWindow deploymentWindow = new DeploymentWindow(devices); deploymentWindow.Owner = this; this.Hide(); deploymentWindow.Show(); }
private void deployButton_Click(object sender, RoutedEventArgs e) { IList <IDevice> devices = new List <IDevice>(deviceList.SelectedItems.Count); foreach (IDevice device in deviceList.SelectedItems) { devices.Add(device); } DeploymentWindow deploymentWindow = new DeploymentWindow(devices); deploymentWindow.Owner = this; this.Hide(); deploymentWindow.Show(); }