/// <summary> /// Initialize the config manager. /// </summary> /// <remarks> /// Load the configurations from file, if possible, and get the last /// used algorithm. /// </remarks> private void initConfigManager() { configManager = new ConfigManager() { ConfigFileName = System.IO.Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "halftonelab.cfg") }; configManager.load(); // load the last used algorithm selectedAlgorithm = configManager.getModule<HalftoneAlgorithm>( "_LAST"); if (selectedAlgorithm == null) { selectedAlgorithm = new HalftoneAlgorithm(); } }