1. 登录界面的效果图
2. 登录界面实现的功能描述
1.库管员登陆、收银员登陆
- 登陆正确,显示成功
3.登录失败,提示错误
3. 登录界面各控件的参数设置
label 1
| 属性 |
值 |
| name |
label 1 |
| text |
账号 |
label 2
| 属性 |
值 |
| name |
label 2 |
| text |
密码 |
label 3
| 属性 |
值 |
| name |
label 3 |
| text |
用户类型 |
comboBox 1
| 属性 |
值 |
| dropdownstyle |
dropdownlist |
| tableindex |
1 |
textbox 1
| 属性 |
值 |
| passwordchar |
* |
| tabindex |
3 |
textbox 2
| 属性 |
值 |
| maxlength |
9 |
| tabindex |
4 |
linklabel
button 1
button 2
form 1
picturebox
| 属性 |
值 |
| image |
WindowsFormsApplication1.Properties.Resources.Cache__6f1df157dba6d997_ |
4. 重要方法描述
登陆判断语句
private void button1_Click(object sender, EventArgs e)
{
if (this.textBox2.Text == "123" && this.textBox1.Text == "456" && this.comboBox1.SelectedItem == "收银员")
{
MessageBox.Show("正确", "提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk);
}
else
if (this.textBox2.Text == "456" && this.textBox1.Text == "789" && this.comboBox1.SelectedItem == "库管员")
{
MessageBox.Show("正确", "提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk);
}
else
{
MessageBox.Show("错误", "提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error);
}
}
程序退出语句
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}
5. 想一想,还有哪些尚需完善的功能