WinForm下的ComboBox默认是以多行文本来设定显示列表的, 这通常不符合大家日常的应用, 因为大家日常应用通常是键/值对的形式去绑定它的. 参考了一些网上的例子,最终写了一个辅助类用于方便对ComboBox的操作: 用下面这个类的实例作为ComboBox的添加项: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace tp7309.
运营日: select t.* from (select ab.*, bs.station_cn_name, bd.device_name from audit_tvm_cash_detail ab left join basi_station_info bs on ab.station_id = bs.station_id left join basi_dev_info bd on
先写一个数据类Grade.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; namespace ImgProWPF { public class Grade { public string Name { set; get; } } pu