protected void AddVersion(TitanfallModDefinition definition) { if (definition.Contacts != null && definition.Contacts.Count > 0) { TextBlock title = new TextBlock(); title.Inlines.Add(new Bold(new Run("Version"))); DetailsPanel.Children.Add(title); TextBlock versionBlock = new TextBlock(); versionBlock.Text = definition.Version; DetailsPanel.Children.Add(versionBlock); } }
protected void AddContacts(TitanfallModDefinition definition) { if (definition.Contacts != null && definition.Contacts.Count > 0) { TextBlock title = new TextBlock(); title.Inlines.Add(new Bold(new Run("Contact Details"))); DetailsPanel.Children.Add(title); foreach (string contact in definition.Contacts) { TextBlock contactBlock = new TextBlock(); contactBlock.Text = contact; DetailsPanel.Children.Add(contactBlock); } } }
protected void AddAuthors(TitanfallModDefinition definition) { if (definition.Authors != null && definition.Authors.Count > 0) { TextBlock title = new TextBlock(); title.Inlines.Add(new Bold(new Run("Authors"))); DetailsPanel.Children.Add(title); foreach (string author in definition.Authors) { TextBlock authorBlock = new TextBlock(); authorBlock.Text = author; DetailsPanel.Children.Add(authorBlock); } } }