예제 #1
0
		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();
		}
예제 #2
0
        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();
        }