private void Yes(IUICommand command) { myCanvas.Children.Clear(); Game = new GameBoard(myCanvas); GameObjectHelper.InitGameBoard(myCanvas, Level, TextBlockTime, Score, TextBlockLives); _mpBgr.Play(); StartGameTimer(); }
public MainPage() { this.InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Enabled; CreateCanvas(); Game = new GameBoard(myCanvas); GameObjectHelper.InitGameBoard(myCanvas, Level, TextBlockTime, Score, TextBlockLives); _mpBgr.Source = Windows.Media.Core.MediaSource.CreateFromUri(new Uri(@"ms-appx:///Assets/sound.mp3", UriKind.RelativeOrAbsolute)); _mpBgr.Play(); StartGameTimer(); }