// initialize and create the setting objects static AppSettings() { Admin = new SettingsMgr <AppSettingPath50, AppSettingInfo50>(Path, ResetData); Info = Admin.Info; Data = Info.Data; MainWindow.Instance.MsgLeftLine(""); MainWindow.Instance.MsgLeftLine("at ctor AppSettings| status", Admin.Status.ToString()); MainWindow.Instance.MsgLeftLine("at ctor AppSettings| path", Path.SettingPath); MainWindow.Instance.MsgLeftLine("at ctor AppSettings| filename", Path.FileName); MainWindow.Instance.MsgLeftLine(""); }
// if we need to reset to the "factory" default public static void ResetData() { Info = Admin.Info; Data = Info.Data; }