上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 改天再写吧,休息先!! 阅读全文
posted @ 2011-10-20 23:27 Marksion 阅读(237) 评论(0) 推荐(0)
摘要: 在FLex,List与List容器间,都已经 封装好了,只需要设置几个属性,就可以实现 ListItem 相互拖拽数据,非常方便啊想起 C#里不知要多少代码才能解决这些问题,尤其还要拖放排序。Flex程序还挺幸福的,事件都 dispatchEvent 解决了,呵呵。国际惯例,看图先:当然,还加了,相同小图标,窗口模式,操作模式就加了个 等待时候的钟摆, 另外自定义 锁定 拖入,拖出功能。核心代码大概如此:<?xmlversion="1.0"encoding="utf-8"?><s:Modulexmlns:fx="http:// 阅读全文
posted @ 2011-10-20 23:18 Marksion 阅读(1623) 评论(0) 推荐(0)
摘要: 其实在 skin里非常容易实现,不过没有用 flash 的 帧来实现,只用计数器,不知耗性能如何,有兴趣谁去测试回头转告下哈!看图先吧:ApplicationSkin1.mxml <?xmlversion="1.0"encoding="utf-8"?><!--ADOBESYSTEMSINCORPORATEDCopyright2008AdobeSystemsIncorporatedAllRightsReserved.NOTICE:Adobepermitsyoutouse,modify,anddistributethisfileinacco 阅读全文
posted @ 2011-10-20 22:51 Marksion 阅读(1043) 评论(0) 推荐(0)
摘要: <?xmlversion="1.0"encoding="utf-8"?><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library://ns.adobe.com/flex/mx"minWidth="955"minHeight="600"><s:layout&g 阅读全文
posted @ 2011-10-13 16:14 Marksion 阅读(310) 评论(0) 推荐(0)
摘要: 遇到同样的问题,在网页里找到一些资料,先记录下来先!服务端Nhibernate 3.0+wcf ,客户端在调用的时候,如果查询中涉及到关联查询,不管是一对多还是多对一,都会 报错误:无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。这个错误很难判断错在哪里,刚开始时是怀疑查询超时,修改配置文件之后问题依旧。 服务端控制台打印sql语句显示查询是完成了的,网上查了大多数是说序列化的问题,修改配置文件中的序列化最大值,翻了几个老外的blog,重写 DataContractSerializerOperationBehavior, 英文太烂了照搬例子,弄下来还是不行。不过,综合了一... 阅读全文
posted @ 2011-10-01 22:59 Marksion 阅读(304) 评论(0) 推荐(0)
摘要: 1. C#开发C/S程序,有时需要几个端,如服务器端,管理端,客户端等等, 端与端之间是不同线程或者进程,这就涉及跨线程调用的问题, 使用委托或者异步线程是必不可少的,这里是一个简单的委托线程,即通过委托调用另外一个线程;2. 有图有真相: 3. 源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSyste.. 阅读全文
posted @ 2011-09-28 23:52 Marksion 阅读(314) 评论(0) 推荐(0)
摘要: 1. 主题:C#开发当中,多线程很多时候都必不可少的,尤其有处理多任务的情况下;2. 有图有真相:3.源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceThreadExample{publicpartialclassForm1:Form{StringBuild 阅读全文
posted @ 2011-09-28 23:42 Marksion 阅读(309) 评论(0) 推荐(0)
摘要: 一年多没接触C#开发了,复习一下Winform方面的知识:C#开启、关闭进程,获取进程列表;有图有真相:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.ComponentModel;4usingSystem.Data;5usingSystem.Drawing;6usingSystem.Text;7usingSystem.Windows.Forms;8usingSystem.Diagnostics;9usingSystem.Threading;1011namespaceProcessExample12{1314publicp. 阅读全文
posted @ 2011-09-28 23:29 Marksion 阅读(2572) 评论(2) 推荐(0)
摘要: Flex4 ButtonBar 双击出现异常,意外吧,看看运行效果就明白了<?xmlversion="1.0"encoding="utf-8"?><!--dpcontrols\sparkdpcontrols\SparkBBarEvent.mxml--><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library 阅读全文
posted @ 2011-09-23 15:00 Marksion 阅读(460) 评论(0) 推荐(0)
摘要: 用Group用多,感觉挺方便的,就 经常遇到 addChild, addElement 纠结性,还有图形等等;不过后来遇上 BorderContainer,相应解决好很一些美化方面的问题,它都帮你封装好了,太爽了;突然发发现,它本来就是白色背景的,也没设置 背景透明度的 backgroundAlpha, 查看API,原来里面有秘方:嘿嘿, 看代码就明白了:1<s:BorderContainerwidth="48"2 height="41"3 id="bc4"4 borderVisible="false"> 阅读全文
posted @ 2011-09-22 15:04 Marksion 阅读(2542) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页