{
pbDir.Maximum = max;
pbDir.Value = value;
lblProgressDir.Text = value * 100 / max + "%";
};
InvokeUtil.Invoke(this, invokeDelegate);
}
#endregion
#region 显示密码
private void cbxShowPwd_CheckedChanged(object sender, EventArgs e)
{
if (cbxShowPwd.Checked)
{
txtPwd.PasswordChar = default(char);
txtPwdCfm.PasswordChar = default(char);
}
else
{
txtPwd.PasswordChar = '*';
txtPwdCfm.PasswordChar = '*';
}
}
#endregion
#region 关闭窗体事件
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (progressPanel.Visible)
{
MessageBox.Show("正在处理文件,请等待…", "提示");
e.Cancel = true;
}










