Exemplo n.º 1
0
        private void LoadBoard()
        {
            this.Dispatcher.Invoke(new Action(() =>
            {
                XamlHelper.HideWithAnimation(LevelsContainer);
                XamlHelper.HideWithAnimation(CloseImage);
                XamlHelper.HideWithAnimation(AboutImage);

                XamlHelper.ShowWithAnimation(BoardContainer);
                XamlHelper.ShowWithAnimation(BackImage);
                XamlHelper.ShowWithAnimation(RefreshImage);
            }));
        }
Exemplo n.º 2
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;
            }));
        }