public static void SaveSettings (Form sourceForm, string key) { if (sourceForm == null) throw new ArgumentNullException ("sourceForm"); if (string.IsNullOrEmpty (key)) throw new ArgumentNullException ("key"); } #endregion