摘要: 若想将 List<T>作为DataGridView的数据源,然后后续还想继续操作的话,需要将List<T>赋值给BindingList对象, 然后直接将BindingList赋值给DataGridView.DataSource, 如此直接操作BindingList对象时,DataGridView的结 阅读全文
posted @ 2019-03-25 15:58 咖啡无眠 阅读(4772) 评论(1) 推荐(1) 编辑
摘要: //获取当前程序集的完整路径加上EXE的名称 string binPath = Assembly.GetExecutingAssembly().Location; Console.WriteLine(binPath); //获取当前程序集的完整路径 binPath = Directory.GetCu 阅读全文
posted @ 2019-03-25 09:28 咖啡无眠 阅读(3913) 评论(0) 推荐(0) 编辑