form_login.cs
来自「以前为一家4S店开发的维修管理及客户管理的软件,C#开发!」· CS 代码 · 共 44 行
CS
44 行
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 + =
减小字号Ctrl + -
显示快捷键?