Exemplo n.º 1
0
            // initialize and create the setting objects
            static MachSettings()
            {
                Admin = new SettingsMgr <MachSettingInfo40>(ResetData);
                Info  = Admin.Info;
                Data  = Info.Data;

                Info.Configure();
            }
Exemplo n.º 2
0
            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();
            }