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 Grant.Framework { public partial class GetCardForm : BaseForm { public string CardStr = string.Empty; public GetCardForm() { InitializeComponent(); CardStr = string.Empty; } private void simpleButton1_Click(object sender, EventArgs e) { try { if (string.IsNullOrWhiteSpace(textEdit1.Text)) throw new Exception("请填写卡密!"); CardStr = textEdit1.Text; this.DialogResult = DialogResult.OK; } catch (Exception ex) { ShowError(ex); } } } }