Ejemplo n.º 1
0
        private void LoadMenu()
        {
            this.Dispatcher.Invoke(new Action(() =>
            {
                LevelPlaceholder.Content = new LevelSelect();
                //LevelSelectControl.PopulateLevels();

                XamlHelper.HideWithAnimation(BoardContainer);
                XamlHelper.HideWithAnimation(BackImage);
                XamlHelper.HideWithAnimation(RefreshImage);

                XamlHelper.ShowWithAnimation(LevelsContainer);
                XamlHelper.ShowWithAnimation(CloseImage);
                XamlHelper.ShowWithAnimation(AboutImage);

                _boardControl = null;
            }));
        }
Ejemplo n.º 2
0
 public void LevelSelected()
 {
     _boardControl            = new PegSolitaire();
     BoardPlaceholder.Content = _boardControl;
     LoadBoard();
 }