/// <summary> /// Initializes a new instance of the <see cref="frmConfigureLocator"/> class. /// </summary> /// <param name="inSettings">The in settings.</param> public ConfigureLocatorForm() { try { InitializeComponent(); pnlDataHub.Location = new System.Drawing.Point(pnlHub.Location.X, pnlHub.Location.Y); pnlDataHub.Size = new Size(pnlHub.Size.Width, pnlHub.Size.Height); this.LocatorNamesAlreadyInUse = new List <string>(); //Setup Local Locators this.InvalidateWebService(); cboUrl.Items.Clear(); cboLocator.DisplayMember = "LocatorName"; cboLocator.ValueMember = "LocatorId"; //Setup DataHub Locators _DHubLocators = new BindingList <OnlineLocator>(); try { _DHubLocators = OnlineManager.ListLocatorsWithSubscriptions(); } catch (Exception) { } cboDhubLocator.DataSource = _DHubLocators; cboDhubLocator.DisplayMember = "Name"; cboDhubLocator.ValueMember = "Id"; // Configure the Default State of the Locator radAuthNone.Checked = true; ConfigureUI(); } catch (Exception exv) { Cursor.Current = Cursors.Default; DataHubExtension.ShowError(exv); } finally { Cursor.Current = Cursors.Default; } }