- 博客(15)
- 资源 (12)
- 收藏
- 关注
原创 Composite UI Application Block 之自定义UIElement(二)
目标:让我们建立一个树形结构菜单,具体的说用一个TreeView来显示菜单。先看效果图 1、首先我们需要建立一个自定义的TreeView,实现单击事件。 namespace CustomUIElements...{ public delegate void NodeClickedEvent(object sender, TreeNode nodeClicked);
2008-01-28 15:20:00 1143 1
原创 Composite UI Application Block 之自定义CommandAdapter
1.1. Commands1.1.1. 类关系图图 2‑6 主要类关系图说明:1. Command定义了一个命令,如“FileExit”,它跟一系列的CommandAdapter相关,好比一个命令可以从多个地方下发(菜单或工具栏等等)。2. Command持有一个ICommandAdapterMapService接口,也正是这个接
2008-01-24 15:40:00 918
原创 Composite UI Application Block 之自定义UIElement
1.1. UIElement1.1.1. 接口定义 图 2‑1 IUIElementAdapterFactoryCatalog其中UIElementAdapterFactoryCatalog是CAB中提供的默认实现图 2‑2 IUIElementAdapterFactoryCompositeUI.WinForms中有一个实现了该接口的ToolStrip
2008-01-24 13:16:00 1147
原创 c# 2.0
可空类型 /// /// 可空类型示例 /// public class NullableUsage { // 针对值类型的可空类型 NullableDateTime> dt = null; DateTime? dt2 = null; public int test() {
2008-01-23 14:10:00 625
原创 Sqlserver2005与Sqlserver Compact的数据订阅与发布
Sqlserver2005与Sqlserver Compact的数据订阅与发布1. 数据库准备图 1‑1 Sql server及sql compact数据库如上图所示,我们用于数据发布的数据库为CityManagerMobileStaging,而我们用于订阅的数据库为SM1OfflineDatastore.sdf。2. 数据库发布2.1. 创建发布图
2008-01-22 23:02:00 1128 1
原创 Composite UI Application Block 学习笔记之二
Composite UI Application Block 学习笔记1. 重要对象解析1.1. WorkItem在WorkItem中,有如下的成员变量:private WorkItem parent;private ManagedObjectCollectionWorkItem> workItemCollection;表明在这个设计中,WorkItem支持多级嵌套,我
2008-01-22 22:57:00 1363
原创 Composite UI Application Block学习笔记之一
Composite UI Application Block 学习笔记1. 概念(Concept)1.1. SmartParts SmartParts provide the visual elements in your applications. These visual elements can be entirely independent of the applicati
2008-01-22 22:38:00 2756 1
转载 一段感人的对白
桌两边,坐了男人和女人。“我喜欢你。”女人一边摆弄着手里的酒杯,一边淡淡的说着。“我有老婆。”男人摸着自己的手上的戒指。“我不在乎,我只想知道,你的感觉。你,喜欢我嘛?”意料中的答案。男人抬起头,打量着对面的女人。24岁,年轻,有朝气,相当不错的年纪。白皙的皮肤,充满活力的身体,一双明亮的,会说话的眼睛。真是不错的女人啊,可惜。“如果你也喜欢我,我不介意作你的情人。”女人终于等不下去,追加了一句。
2008-01-17 22:43:00 764
原创 cab之性能优化——使用ObGen和CabGen
方法:You just run both tools on your shell and module assemblies, by passing the assembly file path to the tool as the first command line argument. That will generate "assembly.cabgen.dll" and "assembly
2008-01-15 21:40:00 945
原创 解决在VS2005中“当前不会命中断点。源代码与原始版本不同”的问题
今天在Visual Studio 2005中调试某个程序时遇到一个奇怪问题就是在某个源文件中设置的断点老是无效,提示“当前不会命中断点。源代码与原始版本不同”信息清理项目、重编项目、重新拷贝原文件都解决不了问题“工具”,“选项”,“调试”,“要求源文件与原始版本完成匹配”去掉勾。另外通过重新格式化出问题的源文件亦可以解决,即在VS2005中选择 “编辑”-“高级”-“设置选定内容
2008-01-15 15:24:00 2286 1
原创 CAB Best Practices
CAB Best Practicesposted Sunday, March 19, 2006 6:10 PM There should be a 1–1 relationship between a view and it’s presenter. Presenters are seen as an implementation detail of a view s
2008-01-13 22:11:00 595
原创 Event Publication throws ArgumentException
这几天在看微软的CAB,在实际的mobile开发过程中试用了一把,感觉还不错,不过今天遇到一个问题,EventBroker的功能模块似乎有点问题,以下是我的原始代码, // Declares a global scoped event that signals that user selected a location [EventPublication("topic:
2008-01-12 20:59:00 930
原创 [12-28][Visual Studio 2005 Team Suite 集成 SP1 MSDN2][BT][5.5G][ISO][15天]
转载 Visual Studio 2005 Team Suite RTM 简体中文版 集成 SP1绝对真正的 Team Suite RTM,永不过期,我已经用了一年了。相信安装过Visual Studio 2005的人都知道,本来安装它就是一个漫长的过程,可是微软推出其SP1补丁更是不输于它。我曾经为了安装这两个玩意,一个下午就这样浪费掉了,简直就是时间杀手。我现在已经把他整合在一起了,一次安
2008-01-07 21:53:00 1966
原创 A call to SQL Server Reconciler failed. Try to resynchronize.
在进行sql server 2005 和 sql server compact 的数据同步复制时总是报错,错误的大体信息如下:A call to SQL Server Reconciler failed. Try to resynchronize.详细错误信息:Error messages:The schema script C:/Program Files/Microsoft SQL Serv
2008-01-07 11:28:00 980
原创 Invalid object name 'dbo.sysmergepublications'.
TITLE: New Publication Wizard------------------------------SQL Server could not create publication CustomerListPublication.------------------------------ADDITIONAL INFORMATION:An exception occ
2008-01-04 15:44:00 3580
VA_X_patch_10.6.1862(Visual AssistX)
2012-01-12
Getting Started with Flex 3: An Adobe Developer Library Pocket Guide for Developers
2008-10-21
Professional Adobe Flex 2 (Programmer to Programmer)
2008-10-21
WPF高级编程2008(C#)第二版
2008-10-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人