Example #1
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;
 }
Example #2
0
        // initialize and create the setting objects
        static SiteSettings()
        {
            Path.RootPath =
                @"D:\Users\Jeff\OneDrive\Prior Folders\Office Stuff\CAD\Copy Y Drive & Office Standards\AppData";

            Admin = new SettingsMgr <SiteSettingPath50, SiteSettingInfo50>(Path, 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", Path?.SettingPath ?? "is null");
            MainWindow.Instance.MsgLeftLine("at ctor SiteSettings| filename", Path?.FileName ?? "is null");
            MainWindow.Instance.MsgLeftLine("");
        }