/// <summary>
 /// Initialize the object.
 /// </summary>
 /// <param name="ssConfig">Set the Subsystem Configuration.</param>
 public SubsystemOptions(SubsystemConfiguration ssConfig)
 {
     TextOptions           = new TextSubsystemConfigOptions(ssConfig);
     GraphicalOptions      = new ViewDataGraphicalOptions(ssConfig);
     ScreenOptions         = new ScreenSubsystemConfigOptions(ssConfig);
     AverageOptions        = new AverageSubsystemConfigOptions(ssConfig);
     ValidationViewOptions = new ValidationTestViewOptions(ssConfig);
 }
        /// <summary>
        /// Get the text options from the hashset.  This will
        /// check if the subsystem configuration is in the hashset.
        /// If it is in the hashset, it will get the text options.
        /// If it is not, it will return a default configuration.
        /// </summary>
        /// <param name="ssConfig">Subsystem configuration to check.</param>
        /// <returns>Text options.</returns>
        public TextSubsystemConfigOptions GetTextOptions(SubsystemConfiguration ssConfig)
        {
            TextSubsystemConfigOptions options = null;

            if (SubsystemConfigList.Contains(ssConfig))
            {
                options = SubsysOptions[ssConfig.IndexCodeString()].TextOptions;
            }
            else
            {
                options = new TextSubsystemConfigOptions();
            }

            return(options);
        }
        /// <summary>
        /// Save the Text SubsystemConfiguration options to the project database.
        /// This will store the options so the user can retreive them when the project
        /// is loaded again.
        /// </summary>
        /// <param name="ssConfig">Subsystem Configuration.</param>
        /// <param name="options">Text SubsystemConfiguration options.</param>
        public void SaveTextOptions(SubsystemConfiguration ssConfig, TextSubsystemConfigOptions options)
        {
            // Check if the subsystem exist in the dictionary
            if (SubsystemConfigList.Contains(ssConfig))
            {
                // Store the text options to the SubsystemConfig entry
                SubsysOptions[ssConfig.IndexCodeString()].TextOptions = options;
            }
            else
            {
                // Add new subsystem configuration
                AddConfiguration(ssConfig);

                // Store the new options if the entry could be made
                if (SubsystemConfigList.Contains(ssConfig))
                {
                    // Store the text options to the SubsystemConfig entry
                    SubsysOptions[ssConfig.IndexCodeString()].TextOptions = options;
                }
            }

            // Store the new options to the project DB
            SaveOptions();
        }