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) { } } }