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

BtnLoadTFSlabel_Click() private method

Handles the Click event of the btnLoadTFSlabel control.
private BtnLoadTFSlabel_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 BtnLoadTFSlabel_Click(object sender, EventArgs e)
        {
            try
            {
                using (BrowseLabels browselabel = new BrowseLabels(this.selectedtfsConnectionString.GenerateTFSUrl()))
                {
                    browselabel.StartPosition = FormStartPosition.CenterParent;
                    if (browselabel.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                    {
                        this.labelSearchCriteria = browselabel.ValidSearchCriteria;
                        if (this.labelSearchCriteria != null)
                        {
                            this.txtTFSLabelName.Text = this.labelSearchCriteria.LabelName;
                            this.btnLoadSolutions.Enabled = true;
                            this.txtSolutionName.Text = string.Empty;
                        }
                    }
                }
            }
            catch (ArgumentNullException exception)
            {
                exception.ShowUIException();
            }
            catch (ArgumentException exception)
            {
                exception.ShowUIException();
            }
            finally
            {
                this.BringToFront();
            }
        }