示例#1
0
        private async Task Init()
        {
            LogTrace = new LogTrace();
            await LogTrace.Init(true);

            Current = this;

            AnimationSpeeds = new AnimationSpeedsClass(AnimationSpeedSetting.Regular);
            _deck           = new Deck();

            InitializeSettings();
            _windowBounds = Window.Current.Bounds;
            Window.Current.SizeChanged += OnWindowSizeChanged;
            _settingsPopup              = new Popup();
            CurrentBoardType            = BoardType.Uninitialized;

            _frame.Navigate(typeof(NewRoundBoardPage));
            CurrentBoardType = BoardType.Round;

            CribbageView view = GetCribbageView();

            view.InitializeAsync(_deck, _stateMachine);



            if (_stateMachine != null)
            {
                _stateMachine.TransferState();
            }


            _appBarBottom.IsOpen = true;
        }