摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication1{ public class DataClass { public static SqlConnection getconnection() { string strConn = @"Data Source=name;Initial Catalog 阅读全文
posted @ 2013-06-03 15:18 三颗咸鸭蛋 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.string (char[]) 使用指定的字符串数组构建一个新的string对象2.int Compare(string a,string b,bool case) 比较字符串a,b,case为true时表示不区分大小写。当a>b返回正数,当a<b返回负数,a=b返回03. bool EndsWith(string) 确定当前字符串是否以指定的字符串结尾4. bool StartsWith(string) 确定当前字符串是否以指定的字符串开头5.int IndexOf() 返回指定的字符或字符串在当前字符串中的位置6.int LastIndexOf() 返回指定字符或字符串的最 阅读全文
posted @ 2013-06-03 15:02 三颗咸鸭蛋 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1.登陆模块private void btnLogin_Click(object sender, EventArgs e) { if (txtUserID .Text .Trim()==""|| txtPassword .Text .Trim ()=="" || cmbStatus .Text .Trim ()=="") { MessageBox.Show("输入错误,请重新输入!", "提示"); return; } if (cmbStatus.Text .Equals("管理员&q 阅读全文
posted @ 2013-06-03 14:26 三颗咸鸭蛋 阅读(577) 评论(0) 推荐(0) 编辑