随笔分类 -  C#

摘要:相信很多朋友在做BIM项目的时候.都有客户会提出项目计划,形象进度 等需求。 那么当前最主要的问题就是计划与BIM模型的关联问题.那么我在项目中是用户用Project软件编辑计划然后手动跟三维模型关联。如果同行有更好的解决办法请告诉我,非常感谢 1界面布局 2 代码部分 Gantt 属性存储是以XM 阅读全文
posted @ 2015-08-21 14:52 在 水 一 方 阅读(2596) 评论(2) 推荐(0)
摘要:public bool CreateTB_PROPERTY_MODELLByList(List entity) { try { //将集合转换成DataTable ... 阅读全文
posted @ 2015-07-01 14:24 在 水 一 方 阅读(556) 评论(0) 推荐(0)
摘要:private void mnuExportTable_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e){ using (SaveFileDialog saveDialog = new SaveFileDi... 阅读全文
posted @ 2015-06-14 16:28 在 水 一 方 阅读(1265) 评论(0) 推荐(0)
摘要:用Google 翻译的。。做个参考 None 无有效的选择 Select 选择 SelectBox 选择框 RedlineFreehand 红线写意 RedlineLine 红线线 RedlineEllipse 红线椭圆 RedlineCloud 红线云 RedlineLineString 红线线串 阅读全文
posted @ 2014-12-11 10:33 在 水 一 方 阅读(1518) 评论(0) 推荐(0)
摘要:初次接触Navisworks Api .NET 的二次开发.主要是研究了一下。关于NavisWorks 结构树的加载. TreeView Node 选中事件 模型加载窗口: 模型选择事件: 模型的属性加载: 最终效果: 主要是刚接触这个.不懂 只是自己在这写的。如果那位网友有更好的解决方案。请告诉我 阅读全文
posted @ 2014-11-25 22:11 在 水 一 方 阅读(7474) 评论(71) 推荐(3)
摘要:WebAPI Controllers public class SimuController : ApiController { //EF 5 BIM_GENERALDICTONARY_DBEntities entities=new BIM_GENER... 阅读全文
posted @ 2014-08-15 00:28 在 水 一 方 阅读(24769) 评论(0) 推荐(6)
摘要:来自网络、、版权归网络所有..Antlr-----Website: http://www.antlr.org/Copyright: Copyright (c) 2003-2008 Terence ParrLicense: New BSDASP.NET MVC-----Web... 阅读全文
posted @ 2014-06-05 18:09 在 水 一 方 阅读(738) 评论(0) 推荐(0)
摘要:备注您可以访问使用该控件的DataNavigator.Buttons属性显示在一个的DataNavigator控制按钮设置。该属性的返回值是一个DataNavigatorButtons对象。下图说明了数据导航器的按钮,当你创建控制它们的显示方式默认情况下。ButtonDescriptionFirst... 阅读全文
posted @ 2014-05-25 21:45 在 水 一 方 阅读(913) 评论(0) 推荐(0)
摘要:/// /// 设置选中名称 /// /// /// public static string CLitSelectionName(string name) { strin... 阅读全文
posted @ 2014-04-02 11:38 在 水 一 方 阅读(2175) 评论(2) 推荐(0)
摘要:本文章只是技术探讨,学习,技术上的研究而已。请支持正版. 如:KS.Gantt.DLL 为例 破解过程 修改验证的代码 利用ildasm反编译 KS.Gantt.dll 打开IL文件找到对应的代码然后删除掉 哈哈 就这个。。 然后用ilasm编译中间代码 我一看到这几个单词。我就知道成功了。。 然后 阅读全文
posted @ 2014-03-13 11:06 在 水 一 方 阅读(18634) 评论(2) 推荐(0)
摘要:gridView1.CustomColumnDisplayText += gridView1_CustomColumnDisplayText; void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.FieldName == "State") { switch (e.DisplayText) ... 阅读全文
posted @ 2014-02-28 10:50 在 水 一 方 阅读(22656) 评论(0) 推荐(1)
摘要:今天在使用ComboBoxEdit 这个控件的时候,不知道怎么添加值.在官网上找到代码。在这里做个记录 ComboBoxEdit combo = new ComboBoxEdit(); ComboBoxItemCollection coll = combo.Properties.Items; coll.BeginUpdate(); try { coll.Add(new PersonInfo("Sven", "Petersen")); coll.Add(new PersonInfo("Cheryl", "Saylor" 阅读全文
posted @ 2014-01-22 09:52 在 水 一 方 阅读(14595) 评论(0) 推荐(0)
摘要:甘特图属于甘特系列浏览次数(也称为时间或时间轴图表)。此视图显示横条沿时间轴。每个条形代表一个单独的事件的开始和结束的值, 因此,这些图是用来跟踪各种活动的时间范围内(例如计划,利用各种资源,审查该项目的完成项目管理等)。这种图表类型是非常有用的, 当有必要从不同系列上面显示。 部分代码来自于官网、 阅读全文
posted @ 2013-07-17 17:02 在 水 一 方 阅读(5033) 评论(6) 推荐(0)
摘要:WPF CheckBox 自定义样式 给Button设置ToolTip 圆角Button 样式 阅读全文
posted @ 2013-07-12 10:11 在 水 一 方 阅读(224) 评论(0) 推荐(0)
摘要:在我之前用的代码是这样的。。结果图片一大 就内存不够用。。 Bitmap image = new Bitmap(fileName); MemoryStream stream = new MemoryStream(); image.Save(stream, System.Drawing.Imaging.ImageFormat.Png); return stream.ToArray(); 应该把代码改成这样。然后在把 Web.configmaxRequestLength="196000"... 阅读全文
posted @ 2013-05-31 11:27 在 水 一 方 阅读(4773) 评论(0) 推荐(0)
摘要:MaxItemsInObjectGraph - System.ServiceModel.Dispatcher.NetDispatcherFaultException<?xmlversion="1.0"encoding="utf-8"?><configuration><system.serviceModel><behaviors><endpointBehaviors><behaviorname="CustomBehavior"><dataContractSer 阅读全文
posted @ 2013-05-07 16:55 在 水 一 方 阅读(887) 评论(0) 推荐(0)
摘要:在这里做个备注: public partial class XtraForm2 : DevExpress.XtraEditors.XtraForm { private LabelControl _labelControl; private int xpoint; private int yponit; public XtraForm2() { InitializeComponent(); _labelControl = new LabelControl(); ... 阅读全文
posted @ 2013-04-17 14:52 在 水 一 方 阅读(4401) 评论(0) 推荐(0)
摘要:错误异常:Unable to update the EntitySet 'XXX' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.解决方案在使用AdO.NET Entity Framework的时候,你可能会遇到这个问题,这个问题就是告诉你,你使用的“XXX”这张表在数据库没有定义主键,只要设置了主键,就不会 阅读全文
posted @ 2013-04-06 12:43 在 水 一 方 阅读(312) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Windows; using System.Windows.Controls; using System.Windows.Forms; using Mes... 阅读全文
posted @ 2013-03-31 22:21 在 水 一 方 阅读(1905) 评论(0) 推荐(0)
摘要:大多数操作方法会返回从 ActionResult 中派生的类的实例。 ActionResult 类是所有操作结果的基础。 不过,也存在不同的操作结果类型,具体取决于操作方法执行的任务。 例如,最常见的操作是调用 View 方法。 View 方法返回从 ActionResult 中派生的 ViewResult 类的实例。您可以创建返回任意类型(如字符串、整数或布尔值)的对象的操作方法。 这些返回类型在呈现到响应流之前包装在合适的 ActionResult 类型中。下表显示了内置操作结果类型以及返回这些类型的操作帮助器方法。操作结果 帮助器方法 描述 ViewResult View 将视图呈现为网 阅读全文
posted @ 2013-03-23 18:56 在 水 一 方 阅读(6973) 评论(0) 推荐(1)