ListView中的类 [英] Classes in a ListView

查看:79
本文介绍了ListView中的类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有以下类结构


交易类别

常规订单类:交易类
信用卡付款类别:交易类别

我创建一个List< standingorderclass>完整的常规订单,但我想将它们作为Transaction类添加到共享列表视图中,以便不同类型的交易可以使用相同的listview.

如何存档?

谢谢,

I have the following class structure


Transaction Class

Standing Order Class: Transaction Class
Credit Card Payment Class: Transaction Class

I create a List<standingorderclass> full of standing orders but I want to add these to a shared list view as the Transaction class so different types of transactions can use the same listview.

How do I archive this?

Thanks,

推荐答案

List<transactionclass> instead of List<standingorderclass>


这篇关于ListView中的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆