DeploymentTracker.App.Windows.PackageDeployment.BtnLoadSolutions_Click C# (CSharp) Method

BtnLoadSolutions_Click() private method

Handles the Click event of the btnLoadSolutions control.
private BtnLoadSolutions_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void
        private void BtnLoadSolutions_Click(object sender, EventArgs e)
        {
            try
            {
                using (BrowseSolutions browseSolutions = new BrowseSolutions(this.selectedtfsConnectionString.GenerateTFSUrl(), this.labelSearchCriteria))
                {
                    if (browseSolutions.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                    {
                        this.txtSolutionName.Text = Path.GetFileNameWithoutExtension(browseSolutions.SolutionName);
                    }
                }
            }
            catch (ArgumentNullException exception)
            {
                exception.ShowUIException();
            }
            finally
            {
                this.BringToFront();
            }
        }