public GamePage()
 {
     this.InitializeComponent();
     game = new Game();
     leaderBoard = new LeaderBoard();
     levelTimer = new DispatcherTimer();
     levelTimer.Tick += levelTimer_Tick;
     DataContext = game;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
     Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
     Application.Current.Resuming += new EventHandler<Object>(OnResuming);
 }
 public GamePage()
 {
     this.InitializeComponent();
     game = new Game();
     leaderBoard = new LeaderBoard();
     levelTimer = new DispatcherTimer();
     levelTimer.Tick += levelTimer_Tick;
     this.DataContext = game;
     SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested;
     SizeChanged += GamePage_SizeChanged;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
     Application.Current.Resuming += new EventHandler<Object>(OnResuming);
 }