Form1.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MF借书系统
{
    public partial class Form1 : Form
    {
        public static string YONG_HU_MING;
        public Form1()
        {
            InitializeComponent();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            new ApplyForm().Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            new retrieveForm().Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //用户登录
            if (radioButton1.Checked)
            {
                //判断帐号是否为空
                if (zhanghao.Text == "" || zhanghao.Text == null)
                {
                    zhanghao.Focus();
                    MessageBox.Show("帐号不能为空!");
                    return;
                }
                //判断密码是否为空
                if (mima.Text == "" || zhanghao.Text == null)
                {
                    zhanghao.Focus();
                    MessageBox.Show("密码不能为空!");
                    return;
                }
                //生成一个ADO用户信息对象
                ADO.YongHuXinXi yonghu = new ADO.YongHuXinXi();
                string mima_string = yonghu.yonghu_Select_mima(zhanghao.Text);
                //匹配密码
                if (mima.Text == mima_string)
后面还有 35 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。