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;
}
///
/// 取消
///
///
///
private void uiButton2_Click(object sender, EventArgs e)
{
Nowpw = null;
this.Close();
}
///
/// 确认
///
///
///
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("密码不允许为空");
}
}
}
}