public static void LoadSettings (Form targetForm, string key) { if (targetForm == null) throw new ArgumentNullException ("targetForm"); if (string.IsNullOrEmpty (key)) throw new ArgumentNullException ("key"); }