You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.5 KiB
59 lines
1.5 KiB
using Sunny.UI;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace MorClient.UserFrmFrame
|
|
{
|
|
public partial class FrmToolsModifyUserPw : Form
|
|
{
|
|
static string NowUser = "";
|
|
public static string Nowpw = "";
|
|
public FrmToolsModifyUserPw()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public FrmToolsModifyUserPw(string user)
|
|
{
|
|
InitializeComponent();
|
|
NowUser = user;
|
|
uiLabel4.Text = NowUser;
|
|
}
|
|
/// <summary>
|
|
/// 取消
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void uiButton2_Click(object sender, EventArgs e)
|
|
{
|
|
Nowpw = null;
|
|
this.Close();
|
|
}
|
|
/// <summary>
|
|
/// 确认
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void uiButton1_Click(object sender, EventArgs e)
|
|
{
|
|
string userPw = uiTextBox1.Text.Replace(" ", "");
|
|
if (!string.IsNullOrEmpty(userPw))
|
|
{
|
|
Nowpw = userPw;
|
|
this.Close();
|
|
}
|
|
else
|
|
{
|
|
new UIPage().ShowErrorDialog("密码不允许为空");
|
|
}
|
|
}
|
|
}
|
|
}
|