Dictionary简洁

mydic_ShuiFei = new Dictionary<string, string>() {
            {"00000336","南京市自来水公司"}          
            };




cboxJFDW.ItemsSource = mydic_ShuiFei;
            cboxJFDW.SelectedValuePath = "Key";
            cboxJFDW.DisplayMemberPath = "Value";
            cboxJFDW.SelectedIndex = 0;

posted @ 2018-04-20 10:21  microsoftzhcn  阅读(142)  评论(0编辑  收藏  举报