InitDefault() protected method

protected InitDefault ( ) : void
return void
Esempio n. 1
0
 public static Settings Init(string path)
 {
     Instance = new Settings();
     Instance.InitDefault();
     if (path != null && File.Exists(path))
     {
         Instance.InitFile(path);
     }
     else
     {
         Logger.Info("No settings file");
     }
     return(Instance);
 }
Esempio n. 2
0
 public static Settings Init(string path)
 {
     Instance = new Settings();
     Instance.InitDefault();
     if (path != null)
     {
         if (File.Exists(path))
         {
             Instance.InitFile(path);
         }
         else
         {
             Instance.settingsPath = path;
         }
     }
     else
     {
         Logger.Warning("No settings file");
     }
     return(Instance);
 }
Esempio n. 3
0
 public static Settings Init(string path)
 {
     Instance = new Settings();
     Instance.InitDefault();
     if (path != null && File.Exists(path))
     {
         Instance.InitFile(path);
     }
     else
     {
         Logger.Info("No settings file");
     }
     return Instance;
 }