📄 登陆.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 图书馆
{
public partial class 登陆 : Form
{
public 登陆()
{
InitializeComponent();
}
private void 登陆_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int FindIndex;
string strMsg = "";
//System.Data.DataTable table = dataSet11.Tables["pass"];
//DataRow[] rows = table.Select();
FindIndex = comboBox1.FindStringExact(comboBox1.Text);
if (FindIndex < 0)
{
MessageBox.Show("请选择你的名字");
}
else
{
strMsg += comboBox1.SelectedItem.ToString();
strMsg += ",欢迎您使用本系统";
MessageBox.Show(strMsg);
MainForm mf = new MainForm();
mf.Show();
}
}
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -