上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页
摘要: Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past ... 阅读全文
posted @ 2014-06-27 09:44 马语者 阅读(639) 评论(0) 推荐(0) 编辑
摘要: WPF是个用户控件,被WinForm调用。而WinForm是在一个DLL类库中被调用。试了很多方法,都无法将Resource中的图读进程序。用下面的方法总算实现了。 /根据图片的名称,从资源中找到它 public static System.Drawing.Bitmap GetPngFromResources(string pngName) { ... 阅读全文
posted @ 2014-06-25 18:24 马语者 阅读(4015) 评论(0) 推荐(0) 编辑
摘要: 下面代码很好的解释了它们之间的区别: ... 阅读全文
posted @ 2014-06-25 09:04 马语者 阅读(3764) 评论(1) 推荐(1) 编辑
摘要: 用 System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();watch.Start();for (int i = 0; i "000" + x);//Linq,返回IEnumerable}watch.Stop(); 阅读全文
posted @ 2014-06-22 18:40 马语者 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 编译项目,出现提示"Lc.exe已退出,代码为-1" 。 解决办法: 意思就是把licenses.licx这个文件里的内容删除,但是文件还在(此时是个空文件),发生这个问题的原因主要是因为你可能引用了第三方控件但没有注册,删完后,重新编译就一切OK了! 阅读全文
posted @ 2014-06-17 10:00 马语者 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 对于enum类型:使用foreach遍历enum类型的元素并填充comboxforeach ( HatchStyle hs1 in Enum.GetValues(typeof(HatchStyle))) { comboBox1.Items.Add(hs1.ToString()); }From... 阅读全文
posted @ 2014-06-10 16:16 马语者 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 我现在是这么画的,class A { private GeometryGroup _lines; private Path _path; public A() { _path.Data = _lines; } public Draw() { LineGeometry line = new LineGeometr... 阅读全文
posted @ 2014-06-06 11:09 马语者 阅读(894) 评论(0) 推荐(0) 编辑
摘要: WPF的XAML提供了一系列功能强大、用法复杂的 mini-language 来描述可扩展应用程序标记语言 (XAML) 中的几何路径。如下所示: XAML Command Name Description F i FillRule i=0:EvenOdd. i=1:NonZero. M x y Move Moveto (x, y). m x y R... 阅读全文
posted @ 2014-05-30 18:26 马语者 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: 当Thumb跟随Grid旋转90度后,拖拽控件时会飞掉。 private void Thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragD... 阅读全文
posted @ 2014-05-30 15:41 马语者 阅读(1914) 评论(1) 推荐(0) 编辑
摘要: 分类: 概念说明 Revit Revit界面编程 Revit 二次开发入门2013-08-22 13:58 1395人阅读 评论(9) 收藏 举报 在windows 7 32-bit OS 上装了 Revit Architecture 2013, 但在Tab 上没有看到 Add Ins (附加模块), 通常应该在 Manage 或 Modify 旁边。怎样让Add Ins (附加模块)出... 阅读全文
posted @ 2014-05-27 11:14 马语者 阅读(4220) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页