Example #1
0
        /// <devdoc> 
        ///     Saves settings for the given form with the given settings key. 
        /// </devdoc>
        public static void SaveSettings(Form sourceForm, string key) {
            if (sourceForm == null) {
                throw new ArgumentNullException("sourceForm");
            }

            if (String.IsNullOrEmpty(key)) {
                throw new ArgumentNullException("key");
            }

            ToolStripSettingsManager settingsManager = new ToolStripSettingsManager(sourceForm, key); ;

            settingsManager.Save();
        }