eEhdsa

随笔分类 -  C#

让你的桌面下玫瑰
摘要:效果  .Net 2.0 版  .Net 3.5版  .Net 4.0版  截图:   原理  这个实现很简单,没有什么技术含量,但是拿来哄下女朋友啥的还是可以的:)   上学时朋友给我发过一个下雪的圣诞礼物,于是一直惦记着要实现它,突然发现简单来处理的话也还是不复杂的单朵玫瑰(一个影藏掉边框的roseForm,加一张玫瑰花图片)单朵下落(一个timer,每秒把重新调整roseForm的高度和宽度... 阅读全文

posted @ 2010-05-06 10:51 eEhdsa 阅读(3171) 评论(6) 推荐(4)

Script and managed code in Silverlight
摘要:All Cases JS invoke managed code in Silverlight Managed code in Silverlight invoke JS JS invoke managed code out of Silverlight --XMLHttpRequest, post back event, hidden button Managed code out of Sil... 阅读全文

posted @ 2009-11-09 15:52 eEhdsa 阅读(396) 评论(0) 推荐(1)

Silverlight学习记录...
摘要:1, XAML2, 控件,布局,文本,输入3, 图形,动画,媒体4, 数据访问,数据结构5, 网络,通信6, 调试,错误处理,异常------------------------------------原来这里能找到上述所有basic的东西。。。。。Silverlight结构: 阅读全文

posted @ 2009-10-20 10:00 eEhdsa 阅读(173) 评论(0) 推荐(0)

C# Exception整理...
摘要:1, 整体模式PS:以上所有异常都在system命名空间里,除了IOException及其派生Excpetion在system.IO内从图中可以看出异常主要分为2类,SystemException和ApplictaionExceptionSystemException:通常有.Net运行库生成ApplictaionException:是用户定义异常的基类,可用于定义应用程序一些独有的异常2, Sy... 阅读全文

posted @ 2009-09-24 11:58 eEhdsa 阅读(3557) 评论(0) 推荐(0)

Linq to DataSet
摘要:几点基础: 1: class DataTableExtensions// DataTable to EnumerableRowCollection<DataRow>, while EnumerableRowCollection<TRow> has implemented // Ienumerable<T>public static EnumerableRowCo... 阅读全文

posted @ 2009-09-15 13:22 eEhdsa 阅读(257) 评论(0) 推荐(0)

lambda's show time...
摘要:Case1:写一个方法,输入一个表示整型的字符串列表, 并返回一个列表,包含其中偶数的平方, 并且需要按照平方后的结果排序”。 [代码]VS[代码]Where ==> filterSelect ==>changeCase2:列出所有的关键字, 根据其首字母进行分组, 并且要求对每组内部的关键字进行排序 [代码]VS[代码]Key & Count are proper... 阅读全文

posted @ 2009-09-02 10:13 eEhdsa 阅读(214) 评论(0) 推荐(0)

Sum-up of XSLT to XHTML
摘要:1:Used XML and XSLT-XML[代码]-XSLT[代码]2:Set in XMLAdd the code below to XML doc[代码]3:Use JavaScript[代码]4:Use C#[代码]Reference:http://msdn.microsoft.com/zh-cn/library/system.xml.xsl.xslcompiledtransform.t... 阅读全文

posted @ 2009-09-01 17:50 eEhdsa 阅读(259) 评论(0) 推荐(0)

一个提醒...such as implement System.Collections.Generic.IComparer<T>
摘要:Like this:[代码]The same as: L.Sort((a,b) => b-a);If it's not a List<T>We can cast it as:[代码]Then can use linq to do the things we need with myUsersBut sometimes this may throw exceptions...bec... 阅读全文

posted @ 2009-08-17 00:25 eEhdsa 阅读(199) 评论(0) 推荐(0)

An interesting math problem
摘要:Verify the regularsolid shapes only can be five types.证明正多面体只能有5种.First: Look at the proof procedure below:[代码]Yes, it's just so easy :0Then I try to carve it out with codeSecond: The easiest solution... 阅读全文

posted @ 2009-08-13 23:16 eEhdsa 阅读(320) 评论(0) 推荐(0)

Convert.ToInt32、(int)和int.Parse三者的区别
摘要:参考http://www.cnblogs.com/flyker/archive/2009/03/04/1402673.html 对null值的处理,习惯了用covert,但要主要null时返回0也许不是我想要的结果:) 阅读全文

posted @ 2009-04-22 08:48 eEhdsa 阅读(195) 评论(0) 推荐(0)

导航