public NewsEntry(string created, string enu_title, string enu_text, string fra_title, string fra_text) { string EnuDate, FraDate; ParseCreated(created, out EnuDate, out FraDate); CreatedTable.Add(LanguageStates.English, EnuDate); CreatedTable.Add(LanguageStates.French, FraDate); string EnglishTitle = Language.ReplaceHtml(enu_title); TitleTable.Add(LanguageStates.English, EnglishTitle); string FrenchTitle = Language.ReplaceHtml(fra_title); TitleTable.Add(LanguageStates.French, FrenchTitle); List <INewsEntryLink> LinkList; string EnglishText = Language.ReplaceHtml(Encoding.UTF8.GetString(Convert.FromBase64String(enu_text))); EnglishText = ReplaceLinks(EnglishText, out LinkList); TextTable.Add(LanguageStates.English, EnglishText); LinksTable.Add(LanguageStates.English, new ObservableCollection <INewsEntryLink>(LinkList)); string FrenchText = Language.ReplaceHtml(Encoding.UTF8.GetString(Convert.FromBase64String(fra_text))); FrenchText = ReplaceLinks(FrenchText, out LinkList); TextTable.Add(LanguageStates.French, FrenchText); LinksTable.Add(LanguageStates.French, new ObservableCollection <INewsEntryLink>(LinkList)); }
public NewsEntry(string created, string enu_title, string enu_text, string fra_title, string fra_text) { string EnuDate, FraDate; ParseCreated(created, out EnuDate, out FraDate); CreatedTable.Add(LanguageStates.English, EnuDate); CreatedTable.Add(LanguageStates.French, FraDate); string EnglishTitle = Language.ReplaceHtml(enu_title); TitleTable.Add(LanguageStates.English, EnglishTitle); string FrenchTitle = Language.ReplaceHtml(fra_title); TitleTable.Add(LanguageStates.French, FrenchTitle); string EnglishText = Encoding.UTF8.GetString(Convert.FromBase64String(enu_text)); EnglishText = $"{ContentStyle}{ContentHeader}{EnglishText}{ContentFooter}"; TextTable.Add(LanguageStates.English, EnglishText); string FrenchText = Encoding.UTF8.GetString(Convert.FromBase64String(fra_text)); FrenchText = $"{ContentStyle}{ContentHeader}{FrenchText}{ContentFooter}"; TextTable.Add(LanguageStates.French, FrenchText); }