예제 #1
0
        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);
        }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     hardIDtext.Text = VerifyHandler.GetHardID();
 }