Loading

上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 45 下一页
摘要: Progress and technology are a second-order effect on the outcome of a project.The first-order effect is the people.Chapter1 Agile PracticesMainfesto for Agile Software Development.we are uncovering better ways of developing software by doing this and helping others do it.Through this work we have co 阅读全文
posted @ 2012-10-19 16:29 青岛欧姆网络科技 阅读(237) 评论(0) 推荐(0)
摘要: JoinJoin方法:原型public static IEnumberable<V> Join<T,U,K,V>( this IEnumberable <T> outer, IEnumberable<U> inner, Func<T,K> outerKeySelector, Func<T,U,V> resultSelector); 阅读全文
posted @ 2012-10-15 22:57 青岛欧姆网络科技 阅读(142) 评论(0) 推荐(0)
摘要: 自定义事件的步骤:1.声明委托:public delegate yourActionEventHandler(Object sender,ArguEvent e);2.声明事件public eventyourActionEventHandler yourAction;3.注册事件:Class class = new Class();class.yourAction += new yourActionEventHandler(Object sender,ArguEvent e);4.实现事件处理函数:public void yourActionEventHandler(Object sender 阅读全文
posted @ 2012-09-29 16:36 青岛欧姆网络科技 阅读(315) 评论(0) 推荐(0)
摘要: Console.WriteLine(1 == 1 & 1 == 1);前后两个判断都会执行.Console.WriteLine(1 == 1 && 1 == 1);如果前面的判断为false则不执行后面的判断.直接返回false.建议用 && 这么做是有原因的.比如 tb 是一个TextBoxif(tb!=null & tb.Text==""){}如果tb!=null的值为true,则这么写会出错.因为不管tb!=null的值为true还是false都会去执行tb.Text=="".而当tb==null的时 阅读全文
posted @ 2012-09-28 22:39 青岛欧姆网络科技 阅读(329) 评论(0) 推荐(0)
摘要: Chapter 4 延迟操作1.引用命名空间using System.Linq;using System.Collections;using System.Collections.Generic;using System.Data.Linq;2.Where方法WHere 方法的作用是根据查询条件过滤结果。where 方法有两个原型:第一个:public static IEnumerable<T> Where<T>(this IEnumerable<T> source,Func<T,bool> predicate);该原型的作用是通过输入一个可以进 阅读全文
posted @ 2012-09-27 22:50 青岛欧姆网络科技 阅读(141) 评论(0) 推荐(0)
摘要: Func Delegates(函数 委托)Func Delegae的声明:public delegate TR Func<TR>();public delegate TR Func<T0, TR>(T0 a0);public delegate TR Func<T0, T1, TR>(T0 a0, T1 a1);public delegate TR Func<T0, T1, T2, TR>(T0 a0, T1 a1, T2 a2);public delegate TR Func<T0, T1, T2, T3, TR>(T0 a0, T1 阅读全文
posted @ 2012-09-27 21:24 青岛欧姆网络科技 阅读(159) 评论(0) 推荐(0)
摘要: 1.仿QQ托盘消息闪动:原理:当有消息来的时候,托盘图标以彩色图标和透明图标来回切换表现闪动效果。2.播放WAV文件System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.SoundLocation = Application.StartupPath + "\\msg.wav"; player.Play();3. 调用Chrome打开指定网址Process process = new Process();process.StartInfo.Use... 阅读全文
posted @ 2012-09-27 08:51 青岛欧姆网络科技 阅读(212) 评论(0) 推荐(0)
摘要: 调用 IE:System.Diagnostics.Process myProcess = new System.Diagnostics.Process();myProcess.StartInfo.FileName = "iexplore.exe";myProcess.StartInfo.Arguments = "http://www.net0and1.com/";myProcess.Start();调用默认浏览器:string target= "http://www.net0and1.com";//Use no more than o 阅读全文
posted @ 2012-09-26 10:33 青岛欧姆网络科技 阅读(285) 评论(0) 推荐(0)
摘要: Part 2Chapter 3LINQ to Objects overviewIEnumberalbe<T> Sequences,and the standard QueryIEnumberable<T>, 发音为“I enumerable of T”,IEnumberalbe 是C#中所有泛型集合类必须继承的接口。这个接口允许遍历每个集合的元素。序列的定义就是实现了IEnumerable<T>接口的集合。所有的标准查询语句都是扩展方法,在System。Linq.Enumberalbe命名空间中,静态类,属性中第一个参数是IEnumberable<T& 阅读全文
posted @ 2012-09-25 22:47 青岛欧姆网络科技 阅读(164) 评论(0) 推荐(0)
摘要: 查询表达式1.标准点式语法 和 标准表达式法标准表达式法接近于SQL语法,点式语法则更便于使用。C#语言并没有要求我们必须使用哪种方式,很显然,点式语法是更好的选择。在标准表达式法中,Select放在了语句的最后,这样做的原因是为了是方便VS的智能提示。2.点式语法中常用的查询操作:Where,Select,SelectMany,Join,GroupJoin,GroupBy,OrderBy,ThenBy,OrderByDescending,ThenByDescending.3.查询表达式语法:1.查询表达式必须以from开头2.查询表达式必须包含0个或多个from,let,或者 Where从句 阅读全文
posted @ 2012-09-24 18:08 青岛欧姆网络科技 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 45 下一页