/// <summary>
 /// Initialise the settings object based upon the current account name
 /// </summary>
 private static void InitSettings()
 {
     EMMADataSet.UserSettingsDataTable settingsTable = new EMMADataSet.UserSettingsDataTable();
     userSettingsTableAdapter.FillByName(settingsTable, _name);
     if (settingsTable.Count > 0)
     {
         XmlDocument settingsDoc = new XmlDocument();
         settingsDoc.LoadXml(settingsTable[0].Settings);
         _settings = new UserSettings(settingsDoc);
     }
     else
     {
         _settings = new UserSettings(_name);
     }
 }
 /// <summary>
 /// Log the current user account off.
 /// </summary>
 public static void Logout()
 {
     if (_currentGroup != null)
     {
         _currentGroup.StoreEveAccounts();
         _currentGroup.StoreSettings();
         _currentGroup.StoreItemsTraded();
     }
     if (_settings != null)
     {
         StoreSettings();
     }
     _name = "";
     _settings = null;
     _currentGroup = null;
 }