private void DisplayVariant(Entry entry) { if (entry.Entries.Entry != null) { var variants = new Entry[] { entry }.Select(e => new { DisplayText = e.Name + " (" + e.ID + ")" }); VariantsList.DataSource = variants; VariantPanel.Visible = true; BindSkus(new Entry[] { entry }); BindPrices(); } VariantsList.DataBind(); }
private void DisplayStyle(Entry entry) { StyleNameValue.Text = entry.Name; StylePanel.Visible = true; if (entry.Entries.Entry != null) { var variants = entry.Entries.Entry.Select(e => new { DisplayText = e.Name + " (" + e.ID + ")" }); VariantsList.DataSource = variants; VariantPanel.Visible = true; BindSkus(entry.Entries.Entry); BindPrices(); } VariantsList.DataBind(); }