public override string GetDetail(ResultDataItem item) { return string.Join(Delimiter, string.Format("{0:c}",item.Bankroll), item.Bet.BetType.StringValue, string.Format("{0:c}",item.Bet.Amount), string.Format("{0:c}",item.Result.BetAmount), item.Result.IsWin); }
private void itemData_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.itemData.SelectedItem != null) { this.itemData.Visibility = Visibility.Collapsed; ResultDataItem item = this.itemData.SelectedItem as ResultDataItem; var properties = string.Join(Environment.NewLine + Environment.NewLine, item.Results .Select(y => y.Key + Environment.NewLine + (y.Value == null ? "(null)" : y.Value.ToString()))); var block = new Paragraph(); block.Inlines.Add(new Run() { Text = properties }); this.itemText.Blocks.Add(block); this.itemText.Visibility = Visibility.Visible; } }
public abstract string GetDetail(ResultDataItem item);