public static ApplicationSettings Load()
    {
      var apls = new ApplicationSettings();
      string filename = string.Format("{0}\\InstallerSettings.xml", MpeInstaller.BaseFolder);

      if (File.Exists(filename))
      {
        FileStream fs = null;
        try
        {
          var serializer = new XmlSerializer(typeof (ApplicationSettings));
          fs = new FileStream(filename, FileMode.Open);
          apls = (ApplicationSettings)serializer.Deserialize(fs);
          fs.Close();
          return apls;
        }
        catch
        {
          if (fs != null)
            fs.Dispose();
          return new ApplicationSettings();
        }
      }
      return apls;
    }
 public void Init()
 {
   InitializeComponent();
   MpeCore.MpeInstaller.Init();
   _settings = ApplicationSettings.Load();
   MpeCore.MpeInstaller.InstalledExtensions.IgnoredUpdates = _settings.IgnoredUpdates;
   MpeCore.MpeInstaller.KnownExtensions.IgnoredUpdates = _settings.IgnoredUpdates;
   _loading = true;
   chk_update.Checked = _settings.DoUpdateInStartUp;
   chk_updateExtension.Checked = _settings.UpdateAll;
   chk_stable.Checked = _settings.ShowOnlyStable;
   chk_dependency.Checked = _settings.ShowOnlyCompatible;
   numeric_Days.Value = _settings.UpdateDays;
   FilterList();
   chk_update_CheckedChanged(null, null);
   _loading = false;
   extensionListControl.UnInstallExtension += extensionListControl_UnInstallExtension;
   extensionListControl.UpdateExtension += extensionListControl_UpdateExtension;
   extensionListControl.ConfigureExtension += extensionListControl_ConfigureExtension;
   extensionListControl.InstallExtension += extensionListControl_InstallExtension;
   extensionListControl.ShowScreenShot += extensionListControl_ShowScreenShot;
   extensionListContro_all.UnInstallExtension += extensionListControl_UnInstallExtension;
   extensionListContro_all.UpdateExtension += extensionListControl_UpdateExtension;
   extensionListContro_all.ConfigureExtension += extensionListControl_ConfigureExtension;
   extensionListContro_all.InstallExtension += extensionListControl_InstallExtension;
   extensionListContro_all.ShowScreenShot += extensionListControl_ShowScreenShot;
 }