![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
ewin66
这个作者很懒,什么都没留下…
展开
-
XAF 批量物理删除记录
using (UnitOfWork newUnitOfWork = new UnitOfWork(((XPObjectSpace)createObjectSpace).Session.ObjectLayer)) { //批量物理删除 //https://github.com/DevExpress-Examples/XPO_obsolete-how-to-create-wcf-service-exposing-methods-necessary-to-implement-the-e2808/blob/...原创 2021-04-03 02:25:19 · 265 阅读 · 0 评论 -
xaf 中的 Controller(摘自DevExpressSources)
protected override IEnumerable<Type> GetDeclaredControllerTypes() { return new Type[] { typeof(LogonController), typeof(ObjectViewController), typeof(ViewController), typeof(...原创 2020-08-27 12:51:43 · 242 阅读 · 0 评论 -
Winform配置文件异常处理
解决“配置系统未能初始化” 的异常 程序配置文件损坏后,程序也没有什么提示就直接退出了。如何删除损坏的配置文件或目录见资源代码。 https://download.csdn.net/download/ewin66/12060054 ...原创 2019-12-28 11:43:45 · 245 阅读 · 0 评论 -
使用Graphics.FromImage "System.OutOfMemoryException”类型的未经处理的异常在 System.Drawing.dll 中发生
被这个问题折磨了好久。 经过实际的例子,这个问题完美解决。 参见例子代码。原创 2019-11-07 15:06:34 · 1775 阅读 · 0 评论 -
Devexpress 组件galleryControl 控件 mousedown 事件中获取GalleryItem 并进行拖拽
private void galleryControlPictureList_MouseDown(object sender, MouseEventArgs e) { //MouseDown在Gallery_ItemClick之前 if (sender is GalleryControl) { ...原创 2019-02-17 21:47:19 · 783 阅读 · 3 评论 -
Visual Studio 报错:未能加载工具箱项,将从项目中移除
几个项目搅到一起,Solution配置有点乱了。结果有个项目就出现了“未能加载工具箱项,将从项目中移除”错误。经过检查是因为项目的解决方案平台选择的是X86,而项目的设置里面目标平台是X64。改正后就好了。 写出来给大家参考。 ...原创 2018-04-20 14:13:36 · 7431 阅读 · 2 评论