摘要:转载自:http://blog.csdn.net/fengqingtao2008/article/details/17399247 1 using System; 2 using System.Data; 3 using System.Xml; 4 using System.D...
阅读全文
摘要:SELECT u.UserNumber, u.UserName, c.CarNumber, c.CarName, c.CarEngine, s.BuyLs, s.BuyTimeFROM Tb_Sale as sinner join Tb_User as u ON u.UserNumber = s.U...
阅读全文
摘要:MD5值概念解释:转载自:http://free0007.iteye.com/blog/2047163所 谓MD5,即"Message-Digest Algorithm 5(信息-摘要算法)",它由MD2、MD3、MD4发展而来的一种单向函数算法(也就是HASH算法),它是国际著名的公钥加密算法标准...
阅读全文
摘要:SQLHelper.csusing System;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { ...
阅读全文
摘要:数据库备份还原类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//应用相应的命名空间using System.Window...
阅读全文
摘要:http://www.cnblogs.com/gc2013/p/4576345.html
阅读全文
摘要:1、创建数据表CREATE TABLE Tb_pic( ID int primary key identity(1, 1) not null, PictureBox varchar(max) )运行效果:2、代码:using System;using System.Collections.Gener...
阅读全文
摘要:/// /// Execute a SqlCommand that returns a resultset against the database specified in the connection string /// using the pr...
阅读全文
摘要:private void button1_Click(object sender, EventArgs e) { string Path = Environment.GetFolderPath(Environment.SpecialFolder.D...
阅读全文
摘要:验证电话号码的主要代码如下:public bool IsTelephone(string str_telephone){return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(\d{3,4}-)?\d{6,8}$"...
阅读全文
摘要:1、C# GUID的使用:http://www.cnblogs.com/pato/archive/2010/01/09/1643008.html2、C#中使用GUID:http://www.cnblogs.com/dongqi/archive/2008/10/13/1310128.html3、C#中...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 简单工厂模...
阅读全文
摘要:1 byte[] bs = Encoding.UTF8.GetBytes("你的字符串");2 string str = Encoding.UTF8.GetString(bs);
阅读全文
摘要:/// /// 自定义事件-步骤: /// 1、声明关于事件的委托 /// 2、声明事件 /// 3、编写触发事件的方法 /// 4、创建事件处理程序 /// 5、注册事件处理程序 /// 6、在适当的条件下出发事件 /// Dog.cs代码: 1...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 委托_例子...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 委托_例子...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespac...
阅读全文
摘要:微软认为,接口就是一个规范,只说不做,那么就意味着,他的成员必须由子类来实现,也就意味着,在接口中的成员必须是公共的和抽象的。接口就是一个抽象类,通过查看源码知道的;实现接口的成员,并不是来重写,实现之后的接口的成员就是类的成员;接口的方法只能通过接口对象来调用。什么时候接口对象---所谓的接口对象...
阅读全文
摘要:abstract (抽象类,抽象方法) override(负责重写)对抽象类中的抽象方法进行重写。仔细研究代码:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System....
阅读全文
摘要:运行效果:项目目录结构:主窗体代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing...
阅读全文