DataHubServicesAddin.Dialogs.ConfigureLocatorForm.butConnect_Click C# (CSharp) Method

butConnect_Click() private method

Handles the Click event of the butConnect control.
private butConnect_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void
        private void butConnect_Click(object sender, EventArgs e)
        {
            try
            {
                _Locators = this.GetListOfLocatorsFromHub();
                cboLocator.DataSource = _Locators;
                cboLocator.DisplayMember = "LocatorName";
                if (cboLocator.SelectedItem != null)
                {
                    lblDesc.Text = ((RemoteLocator)cboLocator.SelectedItem).LocatorDescription;
                }
                ConfigureUI();
            }
            catch (Exception)
            {

            }
        }