[c]代码库
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Common;
namespace Pos
{
public partial class frmLockScreen : Form
{
public frmLockScreen()
{
InitializeComponent();
}
private void txtPass_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
if (txtPass.Text == PUser.UserPass)
{
this.Close();
}
else
{
lblErr.Visible = true;
}
}
}
private void txtPass_TextChanged(object sender, EventArgs e)
{
lblErr.Visible = false;
}
private void tmrLock_Tick(object sender, EventArgs e)
{
if (lblDisp.ForeColor == Color.Blue)
{
lblDisp.ForeColor = Color.Red;
}
else
{
lblDisp.ForeColor = Color.Blue;
}
}
private void frmLockScreen_KeyDown(object sender, KeyEventArgs e)
{
}
}
}