private void button1_Click(object sender, EventArgs e) { string name = username.Text; if (string.IsNullOrEmpty(name)) { MessageBox.Show("请输入用户名!"); return; } string hardID = hardIDtext.Text; key.Text = VerifyHandler.GetSNByHardID(hardID, name); }
public Form1() { InitializeComponent(); hardIDtext.Text = VerifyHandler.GetHardID(); }