コード例 #1
0
        private void bitmap_Loaded(object sender, RoutedEventArgs e)
        {
            gameViewController.setBitmapHeight(((BitmapImage)sender).PixelHeight);
            gameViewController.setBitmapWidth(((BitmapImage)sender).PixelWidth);

            if (reload && !assembled)
            {
                gameController.startGame(true);
                buttonPause.IsChecked = true;
            }
            else
            {
                gameController.startGame(false);
            }

            //gameController.startGame();
            //if (reload)
            //{
            //    if (!assembled)
            //    {
            //        gameController.togglePause();
            //        buttonPause.IsChecked = true;
            //    }
            //}
        }