资源简介
初学C#开发的一个非常简单的管理系统
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace ProjectManagement
{
public partial class Form1 : Form
{
public const int MAX = 20;
public static string list = @“list.dat“;
public static string admin = @“admin.dat“;
public static string other = @“other.dat“;
public static string s_role;
public static string s_user;
public static string s_key;
public static string s_name;
public static string s_birth;
public static string s_join;
public static string s_info;
public static string s;
public Form1()
{
InitializeComponent();
}
public static void updateList(string o string n)
{
string stemp;
string[] ss = new string[MAX];
int i = 0;
int j;
StreamReader sr = File.OpenText(list);
while ((stemp = sr.ReadLine()) != null)
{
ss[i] = stemp;
if (ss[i] == o)
{
ss[i] = n;
}
i++;
}
sr.Close();
StreamWriter sw = File.CreateText(Form1.list);
for (j = 0; j < i; j++)
{
sw.WriteLine(ss[j]);
}
sw.Close();
}
private void button1_Click(object sender EventArgs e)
{
MessageBox.Show(“作者:魏超\n36060106“
“关于“
MessageBoxButtons.OK
MessageBoxIcon.Information);
}
private void cancel_Click(object sender EventArgs e)
{
Application.Exit();
}
private void login_Click(object sender EventArgs e)
{
using (StreamReader sr = File.OpenText(list))
{
s = sr.ReadLine();
if (user.Text == s)
{
using (StreamReader sr1 = File.OpenText(admin))
{
s_role = sr1.ReadLine();
s_user = sr1.ReadLine();
s_key = sr1.ReadLine();
}
}
else
{
while ((s = sr.ReadLine()) != null)
{
if (s == user.Text)
{
using (StreamReader sr2 = File.OpenText(other))
{
s_role = sr2.ReadLine();
s_user = sr2.ReadLine();
s_key = sr2.ReadLine();
s_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 74 2008-04-20 00:01 ProjectManagement\ProjectManagement\app.config
文件 25 2008-04-21 16:56 ProjectManagement\ProjectManagement\bin\Debug\admin.dat
文件 8 2008-04-22 18:22 ProjectManagement\ProjectManagement\bin\Debug\list.dat
文件 64 2008-04-22 18:22 ProjectManagement\ProjectManagement\bin\Debug\other.dat
文件 1519 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.application
文件 40960 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.exe
文件 74 2008-04-20 00:01 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.exe.config
文件 3098 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.exe.manifest
文件 52736 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.pdb
文件 5256 2008-04-20 00:02 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\ProjectManagement.application
文件 74 2008-04-20 00:01 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\ProjectManagement_1_0_0_0\ProjectManagement.exe.config.deploy
文件 32768 2008-04-20 00:02 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\ProjectManagement_1_0_0_0\ProjectManagement.exe.deploy
文件 6773 2008-04-20 00:02 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\ProjectManagement_1_0_0_0\ProjectManagement.exe.manifest
文件 10134 2008-04-19 23:50 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\ProjectManagement_1_0_0_0\Visual Studio Add-in.ico.deploy
文件 423872 2008-04-20 00:02 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.publish\setup.exe
文件 1519 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.vshost.application
文件 5632 2005-12-08 14:51 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.vshost.exe
文件 74 2008-04-20 00:01 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.vshost.exe.config
文件 3098 2008-04-21 17:22 ProjectManagement\ProjectManagement\bin\Debug\ProjectManagement.vshost.exe.manifest
文件 4240 2008-04-21 17:17 ProjectManagement\ProjectManagement\Form1.cs
文件 8267 2008-04-20 15:13 ProjectManagement\ProjectManagement\Form1.Designer.cs
文件 5814 2008-04-20 15:13 ProjectManagement\ProjectManagement\Form1.resx
文件 6091 2008-04-21 17:22 ProjectManagement\ProjectManagement\Form2.cs
文件 12745 2008-04-21 16:08 ProjectManagement\ProjectManagement\Form2.Designer.cs
文件 5814 2008-04-21 16:08 ProjectManagement\ProjectManagement\Form2.resx
文件 1958 2008-04-21 17:07 ProjectManagement\ProjectManagement\Form3.cs
文件 4632 2008-04-20 21:22 ProjectManagement\ProjectManagement\Form3.Designer.cs
文件 5814 2008-04-20 21:22 ProjectManagement\ProjectManagement\Form3.resx
文件 1519 2008-04-21 17:22 ProjectManagement\ProjectManagement\obj\Debug\ProjectManagement.application
文件 958 2008-04-21 16:08 ProjectManagement\ProjectManagement\obj\Debug\ProjectManagement.csproj.GenerateResource.Cache
............此处省略39个文件信息
相关资源
- 一个开源的C#蜘蛛爬虫程序,看了让你
- C# 论文:实验室设备管理系统+数据库
- C#中的DataGrid数据绑定代码
- c#版的SIFT算法
- C# 贪吃蛇游戏 绝对简单易懂
- C# Neo4jDriver操作Neo4j图形数据库底层代
- c# winform 多语言切换 本地化
- C# Winform线程创建子窗体
- c#编写简单的打地鼠小游戏源码
- 基于sql与c#的学生选课系统
- ECC算法 C#实现代码
- ArcEngine开发鹰眼功能C#实现
- C#调用WebService和开发wsdl
- c#客户端程序自动更新工具含源码
- 用C#2010编写K3插件
- c#驱动级模拟按键
- 源码10 C# 成绩管理系统 C# 成绩管理系
- C# onvif获取摄像头rtsp视频流地址和抓
- C#水平垂直图像镜像---C#数字图像处理
- C# SHA1withRsa签名函数,加解密
- c#访问oracle的几种方式源码
- C# 0/1背包问题过程演示源码
- winform制作windows普通计算器
- C#串口上位机界面。带缓冲区的
- C#腾讯AI 接口签名工具及语音合成De
- C#实现自动升级程序含客户端和服务端
- 十天学会ASP.NET.rar
- C# 模拟 红绿灯程序
- C#最短路径2017
- C# 五子棋(课程设计+包含详细设计文
评论
共有 条评论