private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { //για τα 25 κουμπιά reset resetall1 = new reset(A1); reset resetall2 = new reset(A2); reset resetall3 = new reset(A3); reset resetall4 = new reset(A4); reset resetall5 = new reset(A5); reset resetall6 = new reset(B1); reset resetall7 = new reset(B2); reset resetall8 = new reset(B3); reset resetall9 = new reset(B4); reset resetall10 = new reset(B5); reset resetall11 = new reset(C1); reset resetall12 = new reset(C2); reset resetall13 = new reset(C3); reset resetall14 = new reset(C4); reset resetall15 = new reset(C5); reset resetall16 = new reset(D1); reset resetall17 = new reset(D2); reset resetall18 = new reset(D3); reset resetall19 = new reset(D4); reset resetall20 = new reset(D5); reset resetall21 = new reset(E1); reset resetall22 = new reset(E2); reset resetall23 = new reset(E3); reset resetall24 = new reset(E4); reset resetall25 = new reset(E5); sum = 0; //μηδενίζω τον μετρητή για το νέο παιχνίδι turn = true; // Ξεκινάει πάντα ο Χ }
void Awake() { if (ins == null) { ins = this; GameObject.DontDestroyOnLoad(gameObject); } else if (ins != this) { Destroy(gameObject); } }
public ActionResult Resetpasword(reset r) { try { string email = TempData["email"].ToString(); var update = db.regmodel.Single(x => x.email == email); update.pin = r.pin; db.SaveChanges(); TempData["updated pin"] = "your pin has been successfully updated.Please continue with your Booking"; return(RedirectToAction("Book")); } catch { ViewBag.message("link is expired"); } return(RedirectToAction("Book")); }