private void button1_Click(object sender, EventArgs e) { try { string text = this.textBox1.Text.Trim(); int num = text.IndexOf("-"); string date = text.Substring(num + 1, text.Length - num - 1); //DataTable license = this.YY.GetLicense(text); //if (license.Rows.Count > 0) //{ //this.YY.WriteVipAndNumber(GlobalVariable.UserName, date, text); MessageBox.Show("(此处取消了一个注册认证)升级成功,请重新登录广播器"); FormUpgrade.SendMessage(GlobalVariable.HwndMain, 16, 0, 0); //} //else //{ // MessageBox.Show("注册码不正确或者已经被使用"); //} } catch { } }
private void FormUpgrade_Load(object sender, EventArgs e) { FormUpgrade.SetWindowPos(base.Handle, -1, 0, 0, 0, 0, 3); }