登录模块/RegisterForm1.cs

(开头部分) 6KB

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

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

namespace PropertyManagementSystem
{
    public partial class RegisterForm1 : Form
    {
        public RegisterForm1()
        {
            InitializeComponent();
        }

        public static string lala;
        private void button1_Click(object sender, EventArgs e)
        {
          //接收用户输入的数据
            //1.用户名
          string userName = this.textBox1.Text;
            //2.密码
          string passWord = this.textBox2.Text;
            //3.确认密码
          string rightPwd = this.textBox3.Text;
            //4.公司名
          string companyName = this.textBox4.Text;
            //5.公司地址
          string companyAddress = this.textBox5.Text;
            //6.公司电话
          string companyPhone = this.textBox6.Text;
            //7.姓名
          string name = this.textBox8.Text;
            //8性别
          String gender = "";
          if (radioButton1.Checked)
          {
              gender = "男";
          }
          else
          {
              gender = "女";
          }
            //9.年龄
          string age = this.numericUpDown1.Text;
            //10.身份证号
          string idCard = this.textBox10.Text;
            //11.邮箱
          string mailBox = this.textBox11.Text;
          try
          {
              string Select_sql = string.Format("select userName from Users");
              SqlDataReader reader = DBHelper.GetDataReader(Select_sql);
              //声明变量来存储读取的用户名
              string usName = "";
后面还有 108 行代码,解锁后查看完整代码

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

AI 解读

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

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