随笔分类 - WinForm
摘要:用Google 翻译的。。做个参考 None 无有效的选择 Select 选择 SelectBox 选择框 RedlineFreehand 红线写意 RedlineLine 红线线 RedlineEllipse 红线椭圆 RedlineCloud 红线云 RedlineLineString 红线线串
阅读全文
摘要:初次接触Navisworks Api .NET 的二次开发.主要是研究了一下。关于NavisWorks 结构树的加载. TreeView Node 选中事件 模型加载窗口: 模型选择事件: 模型的属性加载: 最终效果: 主要是刚接触这个.不懂 只是自己在这写的。如果那位网友有更好的解决方案。请告诉我
阅读全文
摘要:WebAPI Controllers public class SimuController : ApiController { //EF 5 BIM_GENERALDICTONARY_DBEntities entities=new BIM_GENER...
阅读全文
摘要:该界面设计部分来自网络。版权归原作者所有。 该工具没有做完成。我只是学习用的。主要是为了熟悉Devexress控件的使用。 1.系统主界面 2.系统代码生成 3.生成的详细代码查看 4.该工具写的不是很智能. 如下生成WCF服务契约代码: 其实对于现在来说。肯定要以模板的形式去写代码生成器。 源代码
阅读全文
摘要:备注您可以访问使用该控件的DataNavigator.Buttons属性显示在一个的DataNavigator控制按钮设置。该属性的返回值是一个DataNavigatorButtons对象。下图说明了数据导航器的按钮,当你创建控制它们的显示方式默认情况下。ButtonDescriptionFirst...
阅读全文
摘要:一直在网上找类似的效果.在Devpexress控件里面的这个是一个Demo的.没法查看源代码.也不知道怎么写的.所以就在网上搜索了半天的.终于找到类似的解决办法.可以使用重绘制的办法的来解决.[DesignerCategory("")] [Designer("")] public cl...
阅读全文
摘要:在这里做个备注,防止下次忘记了..
阅读全文
摘要:gridView1.CustomColumnDisplayText += gridView1_CustomColumnDisplayText; void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.FieldName == "State") { switch (e.DisplayText) ...
阅读全文
摘要:今天在使用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"
阅读全文
摘要:甘特图属于甘特系列浏览次数(也称为时间或时间轴图表)。此视图显示横条沿时间轴。每个条形代表一个单独的事件的开始和结束的值, 因此,这些图是用来跟踪各种活动的时间范围内(例如计划,利用各种资源,审查该项目的完成项目管理等)。这种图表类型是非常有用的, 当有必要从不同系列上面显示。 部分代码来自于官网、
阅读全文
摘要:MaxItemsInObjectGraph - System.ServiceModel.Dispatcher.NetDispatcherFaultException<?xmlversion="1.0"encoding="utf-8"?><configuration><system.serviceModel><behaviors><endpointBehaviors><behaviorname="CustomBehavior"><dataContractSer
阅读全文
摘要:在这里做个备注: public partial class XtraForm2 : DevExpress.XtraEditors.XtraForm { private LabelControl _labelControl; private int xpoint; private int yponit; public XtraForm2() { InitializeComponent(); _labelControl = new LabelControl(); ...
阅读全文
摘要:错误异常: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”这张表在数据库没有定义主键,只要设置了主键,就不会
阅读全文
摘要: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...
阅读全文
摘要:FTP简单管理代码。。在这个做个备注using System.Collections.Generic;using System.IO;namespace CommonSystemFrameWork.Storage{ public abstract class StorageProvider { public abstract List<string> List(string path); public abstract List<string> List(string path, string fillter); public abstra...
阅读全文
摘要:DevExpress 项目的默认是英文版本的。 版本必须在12.0以上在我们开发的时候以及发布给客户的时候 要改成中文版本。 System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CN"); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN"); 在系统初...
阅读全文
摘要:DevComponents.DotNetBar 控件添加选项卡 同理 在这里做个备注。。。。。
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
阅读全文
摘要:在Winform或其它项目 有时候有很多老是在重复 有时候很麻烦。。那么我们将他做成模板、、打开VS2010、或其它版本新建一个项目:选择VS 文件 下面有个选项《导出模板》然后下一步:选择相应的图标,然后点击完成:模板制作完成:打开VS2010新建项目时你将会发现你的模板:然后项目将会是你的模板:制作完成然后我们将制作Forms 模板:#region Version Info /* * ======================================================================== * 【本类功能概述】 * 作者:芦永强 * 时间:$time$
阅读全文
摘要:在Winform。。TreeView绑定数据RoleManager tManager = new RoleManager(); DataTable dt = tManager.FindRoleRigthByRoleid(listRoleView.SelectedItems[0]...
阅读全文

浙公网安备 33010602011771号