InitFile() protected method

protected InitFile ( string path ) : void
path string
return void
Example #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);
 }
Example #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);
 }
Example #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;
 }