结构图示: Person.cs using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows... Read More
posted @ 2011-03-07 16:43 Jon.Zhiwei@hotmail.com Views(1152) Comments(1) Diggs(0)
目录结构:Command/CommandReference.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Input;using System.Windows;namespace WpfApplication1.Command{ public class CommandReference : Freezable, ICommand { public static readonly DependencyProperty Command Read More
posted @ 2011-03-07 05:54 Jon.Zhiwei@hotmail.com Views(673) Comments(0) Diggs(0)
在WinForm中遍历代码: private void button1_Click(object sender, EventArgs e) { foreach (Control control in Controls) { if (control is CheckBox) { ((CheckBox)control).Checked = false; } if (control is TextBox... Read More
posted @ 2011-03-07 04:38 Jon.Zhiwei@hotmail.com Views(297) Comments(0) Diggs(0)
protected void Page_Load(object sender, EventArgs e) { CreateControl(10); } private void CreateControl(int number) { for (int i = 0; i <= number; ++i) { TableRow tr = new TableRow(); TableCell tcleft ... Read More
posted @ 2011-03-07 03:50 Jon.Zhiwei@hotmail.com Views(672) Comments(2) Diggs(1)