摘要: using System;using System.Collections.Generic;using System.Collections.Concurrent;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using System.Diagnostics;namespace ParallelTest1{ public class CalcTask { public event EventHandler<TaskItemEventArgs> OnTas 阅读全文
posted @ 2011-04-03 17:47 linus_wang 阅读(327) 评论(0) 推荐(1) 编辑
摘要: class Program { static void Main(string[] args) { BaseElement element = new BillElement(); element.Key = Guid.NewGuid().ToString(); element.Appearance.Caption = "Hello"; element.Left = 100; XmlUtils.XmlSerializeBaseElement("C:\\xx.xml", element); XmlUtils.XmlSerializeBaseElement("C:\\xx.xml", ne 阅读全文
posted @ 2010-11-27 01:23 linus_wang 阅读(313) 评论(1) 推荐(0) 编辑
摘要: http://blogs.msdn.com/mharsh/archive/2005/03/14/395304.aspxhttp://msdn.microsoft.com/en-us/magazine/cc163634.aspx 阅读全文
posted @ 2010-05-23 19:26 linus_wang 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 我的环境是:windows server 2008 datacenter + IIS7.0 + VS2010 RC我用的是ms提供的sample,使用其提供的bat文件来设置环境的:bat内容如下:@echo offiisreset /stopmkdir %SystemDrive%\inetpub\wwwroot\ServiceModelSamples\binVER | FINDSTR /c:" 6.0." NULIF NOT ERRORLEVEL 1 ( IF EXIST %windir%\system32\inetsrv\appcmd.exe ( %windir%\system32\in 阅读全文
posted @ 2010-04-25 20:21 linus_wang 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 如果动态创建WPF控件,动态捕捉控件的事件,以及定义属性等,上图是我学习后的一个效果图,后续会把实现的代码直接贴上来,我相信看代码是众网友的强项。以下是我的工程文件预览:App.xaml没动过,是系统生成的。MainWindow.xaml[xaml代码]Window x:Class="WpfMainApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainW 阅读全文
posted @ 2010-04-05 21:17 linus_wang 阅读(216) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/soief/archive/2009/06/09/1499322.html 阅读全文
posted @ 2010-02-18 21:33 linus_wang 阅读(103) 评论(0) 推荐(0) 编辑
摘要: http://www.microsoft.com/downloads/details.aspx?FamilyID=f9c0b89b-4964-4906-94c6-60ad8a429690&displaylang=en以下是下载地址。但是不支持银光4的开发了,有点不爽啊。 阅读全文
posted @ 2010-02-14 14:46 linus_wang 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 今天从CSDN上看到一篇关于待机状态下使用程序唤醒电脑的代码,感觉很好,不过没有试过,现把代码转过来以供日后有用的时候再试一下。using System;using System.Runtime.InteropServices;using Microsoft.Win32.SafeHandles;using System.Threading;using System.ComponentModel;namespace ConsoleApplication1 { class Program { [DllImport("kernel32.dll")] public static extern Safe 阅读全文
posted @ 2010-01-28 21:38 linus_wang 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 今天在CSDN看到有为星星大哥问了个关于耗时处理的问题,其实这个问题应该使我们在项目中经常会碰到的。当时我尝试了一下,现在吧自己的实现方法写下来,供有需要的同志参考:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace AsynCallMethod{ public partial 阅读全文
posted @ 2010-01-17 12:22 linus_wang 阅读(439) 评论(0) 推荐(0) 编辑
摘要: Advanced Syntax Reference正则高级语法参考Grouping and Backreferences分组查找与后向引用Syntax语法Description描述Example示例(regex)Round brackets group the regex between them. They capture the text matched by the regex inside them that can be reused in a backreference, and they allow you to apply regex operators to the enti 阅读全文
posted @ 2009-09-05 11:03 linus_wang 阅读(276) 评论(0) 推荐(0) 编辑