⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 模拟银行系统的实现
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Project1
{
    public partial class formLogin : Form
    {
        public formLogin()
        {
            InitializeComponent();
        }

        private void formLogin_Load(object sender, EventArgs e)
        {

        }

        private void txtBoxUserID_TextChanged(object sender, EventArgs e)
        {

        }

        private void txtBoxPasswd_TextChanged(object sender, EventArgs e)
        {

        }

        private void buttonOK_Click(object sender, EventArgs e) 
        {
            bool bValid = Validator.validate(txtBoxUserID.Text, txtBoxPasswd.Text);
            if (bValid == true)
            {
                MessageBox.Show("This is valid");
                //formInfyBank f2 = new formInfyBank();
                formInfyBank f2 = new formInfyBank();
                formLogin f1 = new formLogin();
                this.Hide();
                f2.Show();
                
            }
            else
                MessageBox.Show("This is not valid");
        }

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

        [STAThread]
        public static void Main()
        {
            Application.Run(new formLogin());
        }

        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -