Money-去哪了每日站立会议

今天的工作内容主要是修改调试昨天的代码,完善昨天的代码,编写代码,编写属于自己任务的代码,我领取的任务是该软件初次登录部分的代码,初次登录系统需要注册新用户,需要注册用户名和密码,用户名设置有一定的要求,设置密码也有一定的要求,不符合要求时会出现,错误提示,符合是,会出现设置成功。进入登录环节。

public partial class Form初次登录 : Form
{
public Form初次登录()
{
InitializeComponent();
}

private void Form注册_Load(object sender, EventArgs e)
{
Test.path = System.Environment.CurrentDirectory;
Test._f = this;
textBox1.Clear();
textBox2.Clear();
textBox1.Focus();

}

private void button重置_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox1.Focus();
}

private void button确定_Click(object sender, EventArgs e)
{
if (textBox1.Text == textBox2.Text)
{
Test.passward = textBox1.Text;
if (Test.Fun())
{
MessageBox.Show("密码设置成功,进入登录环节!!!");

Form登录 f = new Form登录();
f.Show();
this.Visible = false;
}
else
{
MessageBox.Show("密码设置失败,请重试!!!");
textBox1.Clear();
textBox2.Clear();
textBox1.Focus();
}
}
else
{
MessageBox.Show("密码设置失败,请重试!!!");
textBox1.Clear();
textBox2.Clear();
textBox1.Focus();
}
}

private void label2_Click(object sender, EventArgs e)
{

}

private void label3_Click(object sender, EventArgs e)
{

}

private void textBox1_TextChanged(object sender, EventArgs e)
{

}

private void textBox2_TextChanged(object sender, EventArgs e)
{

}

}
}

原文地址:https://www.cnblogs.com/amnavov/p/9976133.html