public void Back() { if (gc.CurrentPage == Page.Hamburger) { cc.HamburgerMenu(); // This will deactivate the hamburger menu } if (gc.CurrentPage == Page.AddItem || gc.CurrentPage == Page.AddRoom) { gc.ChangePage(gc.PreviousPage); } }