private void start() { RegistryHelper rh = new RegistryHelper(); //是否修改最高得分 if (int.Parse(this.scores.Text) > int.Parse(this.maxScores.Text)) { rh.SetRegistryData(Registry.CurrentUser, "SOFTWARE\\2048", "MaxScores", this.scores.Text); this.maxScores.Text = this.scores.Text; } //重置界面 for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { qz[i, j].Value = 0; } } this.restore.Enabled = false; this.scores.Text = "0"; CL.zj(qz); CL.zj(qz); }