/// <summary>Displays information about the selected template</summary> private void FillTemplateTab() { try { TemplateInfo manifest = this.GetTemplate(this.TemplatesDropDownList.SelectedValue); if (manifest != null) { this.TemplateTitleLabel.Text = manifest.Title; this.TemplateDescriptionLabel.Text = manifest.Description; this.TemplatePreviewImage.ImageUrl = manifest.GetRelativePath(manifest.PreviewImage, true); this.TemplateDescriptionPanel.Visible = Engage.Utility.HasValue(manifest.Description); this.TemplatePreviewImagePanel.Visible = Engage.Utility.HasValue(manifest.PreviewImage); this.SettingsGrid.DataSource = this.GetChangedSettings(manifest.Settings); this.SettingsGrid.DataBind(); this.LocalizeSettingsGrid(); this.SettingsExplanationLabel.Visible = this.SettingsGrid.Rows.Count > 0; } else { this.TemplateDescriptionPanel.Visible = false; this.TemplatePreviewImagePanel.Visible = false; } } catch (XmlException exc) { this.ShowManifestValidationErrorMessage(exc); } catch (XmlSchemaValidationException exc) { this.ShowManifestValidationErrorMessage(exc); } }