login.cs
来自「对接入电脑的电话modem监听。电话录音」· CS 代码 · 共 48 行
CS
48 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace telListener
{
public partial class login : Form
{
public login()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
if (checkFrm())
{
login.loginName = textBox1.Text;
login.password = textBox2.Text;
this.Tag = "?userName=" + textBox1.Text + "&password=" + textBox2.Text;
this.Close();
}
}
private bool checkFrm()
{
if (this.textBox1.Text == null || this.textBox1.Text.Length < 1)
{
MessageBox.Show("请输入用户名!");
return false;
}
if (this.textBox2.Text == null || this.textBox2.Text.Length < 1)
{
MessageBox.Show("请输入密码!");
return false;
}
return true;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?