📄 登陆.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 button1_Click(object sender, EventArgs e)
{
int type = 0;
if(this.radioButton1.Checked) type=1;
else type=2;
try
{
DataTable dt = this.用户表TableAdapter.GetDataBy1(this.textBox1.Text.Trim(),this.textBox2.Text.Trim(),type);
int ii = dt.Rows.Count;
if (ii == 0) MessageBox.Show("登陆失败用户名或密码有误码");
else
{
this.textBox1.Text = "";
this.textBox2.Text = "";
计量库存管理系统 obj = new 计量库存管理系统(type);
obj.ShowDialog();
}
}
catch (Exception exc)
{
MessageBox.Show("登陆失败:"+exc.Message);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -