old_flsystem/类库/Api.Framework/Cps/weipinhui_form_usernick.cs

49 lines
1.2 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
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;
using UI.Framework.Forms;
namespace Api.Framework.Cps
{
/// <summary>
/// 唯品会名称设置
/// </summary>
public partial class weipinhui_form_usernick : BaseForm
{
internal string usernick = string.Empty;
internal weipinhui_form_usernick()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
if (string.IsNullOrWhiteSpace(textBox1.Text))
throw new Exception("昵称不能为空");
else
{
usernick = textBox1.Text.Trim();
this.DialogResult = DialogResult.OK;
}
}
catch (Exception ex)
{
BaseForm.ShowErrorAutoClose(ex);
}
}
private void weipinhui_form_usernick_Load(object sender, EventArgs e)
{
}
}
}