Esempio n. 1
0
            // initialize and create the setting objects
            static SiteSettings()
            {
                Admin = new SettingsMgr <SiteSettingInfo40>(ResetData);
                Info  = Admin.Info;
                Data  = Info.Data;

                Info.Configure();
            }
Esempio n. 2
0
 // 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;
 }
Esempio n. 3
0
            // initialize and create the setting objects
            static SiteSettings()
            {
                Admin = new SettingsMgr <SiteSettingInfo40>(ResetData);
                Info  = Admin.Info;
                Data  = Info.Data;

                MainWindow.Instance.MsgLeftLine("");
                MainWindow.Instance.MsgLeftLine("at ctor SiteSettings|   status", Admin.Status.ToString());
                MainWindow.Instance.MsgLeftLine("at ctor SiteSettings|     path", Admin.Info.SettingPath);
                MainWindow.Instance.MsgLeftLine("at ctor SiteSettings| filename", Admin.Info.FileName);
                MainWindow.Instance.MsgLeftLine("");
            }