public static void SaveSettings (Form sourceForm) { if (sourceForm == null) throw new ArgumentNullException ("sourceForm"); }