Example #1
0
        /// <summary>
        /// Reloads the list of MySQL Server instances from the ones contained in the MySQL Workbench connections file.
        /// </summary>
        /// <param name="forceRefresh">Flag indicating if the refresh must be done although filters haven't changed.</param>
        private void RefreshMySqlInstancesList(bool forceRefresh)
        {
            if (_lastServicesNameFilter != null &&
                _lastServicesNameFilter != FilterTextBox.Text)
            {
                _lastServicesNameFilter = FilterTextBox.Text;
            }

            _lastShowMonitoredServices = ShowMonitoredInstancesCheckBox.Checked;
            if (forceRefresh)
            {
                MySqlInstancesList.LoadMySqlWorkbenchConnections();
            }

            RefreshMySqlInstancesList(_lastServicesNameFilter, _lastShowMonitoredServices);
        }