public static void SaveAppConfig() { if (AppConfig != null) { cfgSvc.Save(AppConfig); if (ConfigSaved != null) { ConfigSaved(AppConfig, EventArgs.Empty); } } }
public static void SaveAppConfig() { if (cfgSvc == null) { cfgSvc = new AppConfigService(); } if (AppConfig != null) { cfgSvc.Save(AppConfig); if (ConfigSaved != null) { ConfigSaved(AppConfig, EventArgs.Empty); } } else { throw new ArgumentNullException("AppConfig"); } }