📄 form_login.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace RepairCRM
{
public partial class Form_Login : Form
{
public Form_Login()
{
InitializeComponent();
}
private void Form_Login_Load(object sender, EventArgs e)
{
}
private void button_exit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void button_ok_Click(object sender, EventArgs e)
{
if (text_user.Text.Trim() == ""||text_pass.Text.Trim() == "")
{
MessageBox.Show("请填写您的 [ 用户名 ] 和 [ 密码 ] !", "登录失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
text_user.Focus();
}
else
{
Main_Parent opens = new Main_Parent();
opens.Show();
this.Hide();
//this.Dispose();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -