【文件属性】:
文件名称:车牌关系系统
文件大小:308KB
文件格式:ZIP
更新时间:2016-06-15 17:35:35
车牌管理系统
这是一款基于数据库的车牌管理系统
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
namespace WPF车牌1
{
///
/// MainWindow.xaml 的交互逻辑
///
public class kk //该类存放了该程序要用到的公共变量和一些常用方法
{
public static string filename = "F:\\222\\";
public static string hello;
/* public static string mingzi()
{
StreamReader m = new StreamReader("F:\\222\\01\\01001\\mingzi.txt",System.Text.Encoding.GetEncoding("gb2312"));
string temp=m.ReadLine();
m.Close();
m.Dispose();
return temp;
}*/
public static string getmima(string zhanghao) //返回普通用户账号的密码
{
string temp,wenjianming;
wenjianming = filename;
temp=zhanghao.Substring(0,2);
wenjianming = wenjianming + temp + "\\"+zhanghao+"\\mima.txt";
StreamReader m = new StreamReader(wenjianming);
temp = m.ReadLine();
m.Close();
m.Dispose();
return temp;
}