InitFile() protected méthode

protected InitFile ( string path ) : void
path string
Résultat void
Exemple #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);
 }
Exemple #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);
 }
Exemple #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;
 }