Exemplo n.º 1
0
        /// <summary>
        /// Load configs
        /// </summary>
        protected void LoadConfigs()
        {
            // Actual values
            port     = configurator.Port;
            LogLevel = configurator.LogLevel;

            // Cycle through ports
            foreach (object item in ports.Items)
            {
                if (item.ToString() == port)
                {
                    ports.SelectedItem = item;
                }
            }

            // Cycle through loglevels
            foreach (object item in logging.Items)
            {
                if (item.ToString() == LogLevels.LogLevelToString(LogLevel))
                {
                    logging.SelectedItem = item;
                }
            }
        }