//Load default settings in the given instance
    private static void Default(Settings aSettings)
    {

      //Layout properties
      aSettings.SingleLine = false;
      aSettings.SingleLineMode = MediaPortal.ProcessPlugins.MiniDisplayPlugin.Drivers.SharpLibDisplay.SingleLineMode.BottomLineOnly;
      aSettings.SingleLineSeparator = " - ";
    }
    public static Settings Load()
    {
      Settings settings=new Settings();      
      SoundGraphDisplay.LogDebug("SharpLibDisplay.Settings.Load(): started");
      if (File.Exists(Config.GetFile(Config.Dir.Config, m_Filename)))
      {
        SoundGraphDisplay.LogDebug("SharpLibDisplay.Settings.Load(): Loading settings from XML file");
        var serializer = new XmlSerializer(typeof(Settings));
        var xmlReader = new XmlTextReader(Config.GetFile(Config.Dir.Config, m_Filename));
        settings = (Settings)serializer.Deserialize(xmlReader);
        xmlReader.Close();
      }
      else
      {
        SoundGraphDisplay.LogDebug("SharpLibDisplay.Settings.Load(): using default settings");
      }


      SoundGraphDisplay.LogDebug("SharpLibDisplay.Settings.Load(): completed");
      return settings;
    }
 public static void Save(Settings ToSave)
 {
   var serializer = new XmlSerializer(typeof(Settings));
   var writer = new XmlTextWriter(Config.GetFile(Config.Dir.Config, m_Filename),
                                  Encoding.UTF8) { Formatting = Formatting.Indented, Indentation = 2 };
   serializer.Serialize(writer, ToSave);
   writer.Close();
 }