public CatalogueExporter(ExportType Type) { Parser = CatalogueParser.GetInstance(); Preferences = new CataloguePreferencesParser(); Transformer = new XslCompiledTransform(); this.Type = Type; }
public CataloguePreferences() { this.Build(); parser = new CataloguePreferencesParser(); Response += OnResponse; IMDb_it.Active = (bool)parser.GetPreference("imdb_it"); IMDb_univ.Active = (bool)parser.GetPreference("imdb_univ"); Google.Active = (bool)parser.GetPreference("google"); glangbox.Sensitive = (bool)parser.GetPreference("google"); glangbox.Active = (int)parser.GetPreference("google_lang") > glangbox.Model.IterNChildren() - 1 ? glangbox.Model.IterNChildren() - 1 : (int)parser.GetPreference("google_lang"); }