public RunPowershellWindow(IList<Computer> selectedItems) { Computers = new RemoteComputerManager(selectedItems.Select(c => new RemoteComputer(c))); BindingOperations.EnableCollectionSynchronization(Computers, computersLock); InitializeComponent(); ProgressTable.ItemsSource = Computers; FileNamesList.ItemsSource = FileNames; }
public RunPowershellWindow(IList <Computer> selectedItems, string item) : this(selectedItems) { Computers = new RemoteComputerManager(selectedItems.Select(c => new RemoteComputer(c))); BindingOperations.EnableCollectionSynchronization(Computers, computersLock); InitializeComponent(); FileNames.Add(item); ProgressTable.ItemsSource = Computers; FileNamesList.ItemsSource = FileNames; }