CyManager/ULogin.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Common;
using BLL;

namespace CyManager
{
    public partial class ULogin : Form
    {
        public static bool isLogin = false;//验证用户是否登录成功

        public ULogin()
        {
            InitializeComponent();
            txtName.Focus();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //this.skinEngine1.SkinFile = @"skin\XPSilver.ssk";
            //  this.skinEngine1.SkinFile = @"skin\DiamondBlue.ssk";
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            // Application.Exit();
            this.Close();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (this.txtName.Text == "")
            {
                MessageBoxNew.Show("用户名不能为空!!", "提示输入", MessageBoxButtons.OK, MessageBoxIcon.Information);//弹出的是一个带 ! 的图标的提示框
                return;
            }
            if (this.txtPwd.Text == "")
            {
                MessageBoxNew.Show("密码不能为空!!", "提示输入", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);//弹出的是一个带 黄色的 ! 的图标的提示框
                return;
            }
            DataSet ds = null;
            CUsers u = new CUsers();
            u.CuName1 = this.txtName.Text;
            u.CuPwd1 = this.txtPwd.Text;
            ds = BLLUserss.BLLUser(u);
            if (ds.Tables["Users"].Rows.Count == 0)
            {
                MessageBoxNew.Show("用户登录名称或者密码的输入有误!\n登录没有成功!!", "提醒");
                this.txtName.Text = "";
                this.txtPwd.Text = "";
                this.txtName.Focus();
            }
            else
后面还有 64 行代码,购买后查看完整代码

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

AI 解读 AI

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

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