private void opt_Click(object sender, EventArgs e) { if (!Check()) { return; } if (!utemp.Valid) { //如果操作者权限大于被操作者,操作有效 if (Main.priorityOver(utemp.Pri)) { if (utemp.Balance < 0) { MessageBox.Show("请帮TA充值后再尝试解冻", "账户余额不足", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } else { utemp.Valid = true; FileDate.AlterInfo(utemp); FileDate.MatchRecord(OptType.冻结, "123456", utemp.ID); MessageBox.Show("账户解冻成功.", "通知"); } } } else { //如果账号正常那么就无需解冻 MessageBox.Show("无效的操作!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Information); } this.Close(); }