// initialize and create the setting objects static SiteSettings() { Admin = new SettingsMgr <SiteSettingInfo40>(ResetData); Info = Admin.Info; Data = Info.Data; Info.Configure(); }
// if we need to reset to the "factory" default public static void ResetData() { if (Admin == null) { return; } // this makes sure the above static class points // to the current data structure Info = Admin.Info; Data = Info.Data; Info.Configure(); }