/// <summary>
        /// Apply the saved settings
        /// </summary>
        private void ApplySavedSettings()
        {
            LoadSettings();

            EntitiesListControl.CheckEntities(_mySettings.CheckedEntityNames);
            EntitiesListControl.FilterEntitiesList(_mySettings.EntityListFilter);
            EntitiesListControl.SortEntitiesList(_mySettings.ListSortColumn, _mySettings.ListSortOrder);
        }
        /// <summary>
        /// Main loading event for the User Control
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AlternateKeyManagerControl_Load(object sender, EventArgs e)
        {
            // initialize the user control with the connection and parent reference
            EntitiesListControl.Initialize(this, Service);
            EntityDropDown.Initialize(this, Service);

            // udpate some UI elements on load
            UpdateKeysToolbar();
            ToggleNewKeyPane(false);
            ToggleNewKeyPaneEnabled(false);
        }
        /// <summary>
        /// This event occurs when the connection has been updated in XrmToolBox
        /// </summary>
        public override void UpdateConnection(IOrganizationService newService, ConnectionDetail detail, string actionName, object parameter)
        {
            base.UpdateConnection(newService, detail, actionName, parameter);

            // update the connection and clear out the related data
            EntitiesListControl.UpdateConnection(Service);
            EntityDropDown.UpdateConnection(Service);
            ClearSelectedEntitiesList();


            if (_mySettings != null && detail != null)
            {
                _mySettings.LastUsedOrganizationWebappUrl = detail.WebApplicationUrl;
                LogInfo("Connection has changed to: {0}", detail.WebApplicationUrl);
            }
        }