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

47 lines
1.1 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
{
public partial class kuaishou_form_usernick : BaseForm
{
internal string usernick = string.Empty;
internal kuaishou_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 kuaishou_form_usernick_Load(object sender, EventArgs e)
{
}
}
}