using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { /*Equals 的默认实现支持引用相等性(对于引用类型)和按位相等性(对... Read More
posted @ 2011-03-17 22:55 Jon.Zhiwei@hotmail.com 阅读(362) 评论(0) 推荐(0)
结构图示: 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 阅读(1148) 评论(1) 推荐(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 阅读(669) 评论(0) 推荐(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 阅读(297) 评论(0) 推荐(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 阅读(668) 评论(2) 推荐(1)
String targetPath = System.IO.Path.GetFullPath(@"..\..\CopyExcel\temp.xls");string excelonstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + targetPath + ";" + "Extended Properties='Excel 8.0;HDR... Read More
posted @ 2011-03-01 14:21 Jon.Zhiwei@hotmail.com 阅读(284) 评论(0) 推荐(0)
private void Init() { string sql = "select cbdisplayvalue,cbvalue from table where cbid="; int typecustomer = 4; int banzu = 5; int pinzhong = 1; string sql_customer = sql + typecustomer; string sql_banzu = sql + banzu; string sql_pinzhong = sql + pinzhong; DbCommand dcmd_customer = dbsqls Read More
posted @ 2011-03-01 09:42 Jon.Zhiwei@hotmail.com 阅读(1893) 评论(0) 推荐(0)
只是日常开发项目中,涉及总结,而项目是基于三层开发。IDataAccess数据访问层接口:using System;using System.Collections.Generic;using System.Text;using System.Data.Common;using Microsoft.Practices.EnterpriseLibrary.Common;using Microsoft.Practices.EnterpriseLibrary.Data;using System.Collections;using System.Data;namespace IDataAccess{ Read More
posted @ 2011-03-01 01:38 Jon.Zhiwei@hotmail.com 阅读(554) 评论(0) 推荐(0)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml Read More
posted @ 2011-03-01 01:09 Jon.Zhiwei@hotmail.com 阅读(170) 评论(0) 推荐(0)
恋人永远在远方——《秦风·蒹葭》 蒹葭苍苍,白露为霜。所谓伊人,在水一方。溯洄从之,道阻且长;溯游从之,宛在水中央。 蒹葭萋萋,白露未晞。所谓伊人,在水之湄。溯洄从之,道阻且跻;溯游从之,宛在水中坻。 蒹葭采采,白露未已。所谓伊人,在水之涘。溯洄从之,道阻且右;溯游从之,宛在水中沚. 现代诗曰:“你一会儿看云,一会儿看我,你看云的时候,离我很近,看我的时候,离我很远。”我理解这首诗所言,应该是那样... Read More
posted @ 2011-02-25 23:39 Jon.Zhiwei@hotmail.com 阅读(147) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示