/// <summary>
        /// Handles the Click event of the pictureBox control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void PictureBox_Click(object sender, EventArgs e)
        {
            try
            {
                PictureBox picturebox = sender as PictureBox;
                if (picturebox == null)
                {
                    return;
                }

                switch (picturebox.Name)
                {
                    case "picboxConfigureDeploymentTool":
                        if (this.deploymentWindows != 0)
                        {
                            throw new InvalidOperationException("Cannot edit settings while deployments are going on. Please try again.");
                        }

                        this.Hide();
                        using (AppConfigManager configManager = new AppConfigManager())
                        {
                            configManager.StartPosition = FormStartPosition.CenterParent;
                            configManager.FormClosed += new FormClosedEventHandler(this.FormReopen);
                            configManager.ShowDialog(this);
                        }

                        break;
                    case "picboxDeploy":
                        if (this.deploymentWindows < int.Parse(Settings.Default.MaxSessionsPermitted))
                        {
                            this.Hide();
                            PackageDeployment packageDeployment = new PackageDeployment();
                            packageDeployment.StartPosition = FormStartPosition.CenterParent;
                            packageDeployment.Load += new EventHandler(this.PackageDeployment_Load);
                            packageDeployment.FormClosed += new FormClosedEventHandler(this.PackageDeployment_FormClosed);
                            packageDeployment.Show();
                            this.deploymentWindows++;
                        }
                        else
                        {
                            MessageBox.Show(string.Format(CultureInfo.CurrentUICulture, "Cannot exceed more than {0} sessions. Please wait until one or more session to complete.", Settings.Default.MaxSessionsPermitted), "Maximum sessions exceeded", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        }

                        break;
                    case "picboxReports":
                        this.Hide();
                        using (ReportScreen deployReport = new ReportScreen())
                        {
                            deployReport.StartPosition = FormStartPosition.CenterParent;
                            deployReport.FormClosed += new FormClosedEventHandler(this.FormReopen);
                            deployReport.ShowDialog(this);
                        }

                        break;
                    case "picboxManageAzureConfigurations":
                        this.Hide();
                        using (AppLogViewer applogviewer = new AppLogViewer())
                        {
                            applogviewer.StartPosition = FormStartPosition.CenterParent;
                            applogviewer.FormClosed += new FormClosedEventHandler(this.FormReopen);
                            applogviewer.ShowDialog(this);
                        }

                        break;
                }
            }
            catch (InvalidOperationException invalidOp)
            {
                invalidOp.ShowUIException();
            }
        }
        /// <summary>
        /// Handles the Click event of the btnManageTFSsettings control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void BtnManageTFSsettings_Click(object sender, EventArgs e)
        {
            using (AppConfigManager appManager = new AppConfigManager())
            {
                appManager.StartPosition = FormStartPosition.CenterParent;
                appManager.ShowDialog(this);
            }

            this.tFSConnectionsTableAdapter.Fill(this.deploymentTrackerLocalDBTFSConnectionsDataSet.TFSConnections);
            this.cbxServerName.Refresh();
        }