form1.cs
来自「模拟银行系统的实现」· CS 代码 · 共 63 行
CS
63 行
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 + =
减小字号Ctrl + -
显示快捷键?