Esempio n. 1
0
 public bool TestSettingSaveLoad()
 {
     Console.WriteLine("Test Loading and Saving of configuration file");
     objSettigns = HotfixSettings.load(HotfixSettings.SETTINGS_FILENAME);
     objSettigns.save(HotfixSettings.SETTINGS_FILENAME + ".bak");
     return(true);
 }
Esempio n. 2
0
 static StartService()
 {
     #region Try to load settings file
     try
     {
         objSettigns = HotfixSettings.load(HotfixSettings.SETTINGS_FILENAME);
     }
     catch (Exception inner)
     {
         string strMessage = string.Format("Failed to load settings file: {0}{1}",
                                           Environment.NewLine,
                                           Path.Combine(Application.StartupPath,
                                                        HotfixSettings.SETTINGS_FILENAME)
                                           );
         throw new System.InvalidOperationException(strMessage, inner);
     }
     #endregion             // Try to load settings file
 }