📄 登陆界面.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Yewucheng;
namespace Myproject
{
public partial class 登陆界面 : Form
{
//private SqlConnection con;
//private SqlDataAdapter objdata;
//private DataSet objdataset;
public 登陆界面()
{
InitializeComponent();
}
public static void Main()
{
Application.Run(new 登陆界面());
}
private void btnNo2_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void label1_Click(object sender, EventArgs e)
{
高层管理界面 mer = new 高层管理界面();
mer.Show();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
wang selectmer = new wang();
bool logeng =selectmer.SelectMouder("select count(*) from Denglu where username='"+this.txtNo1.Text.Trim()+"' and password='"+this.textBox1.Text.Trim()+"'");
if (logeng)
{
高层管理界面 mer = new 高层管理界面();
mer.Show();
this.Hide();
}
else
{
MessageBox.Show("你的用户名和密码不正确请查证后在输入","系统消息");
}
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void toolStripLabel2_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -