private void OnSelectedReportedDeploymentChanged(string deploymentId)
        {
            if (DeploymentsList.SelectedIndex != -1)
            {
                if (((DeploymentSummary)DeploymentsList.SelectedItem).Name == deploymentId)
                {
                    return;
                }
            }

            int index = -1;
            DeploymentSummary selectedDeployment = null;

            foreach (DeploymentSummary ds in DeploymentsList.Items)
            {
                ++index;

                if (ds.Name == deploymentId)
                {
                    selectedDeployment = ds;
                    break;
                }
            }

            if (index == -1)
            {
                MessageBox.Show("Deployment is not found.");
                return;
            }

            DeploymentsList.SelectedIndex = index;

            DeploymentPanel.Show(selectedDeployment);
        }
        private void OnSelectedDeploymentChanged(object sender, RoutedEventArgs e)
        {
            if (DeploymentsList.SelectedIndex == -1)
            {
                return;
            }

            DeploymentPanel.Visibility = Visibility.Visible;
            DeploymentPanel.Show((DeploymentSummary)DeploymentsList.SelectedItem);
        }