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

                Info.Configure();
            }
Ejemplo 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;
 }
Ejemplo 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("");
            }