Пример #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();


            // PrefixTree takes a few seconds to create, so do it here
            dictionary = new PrefixTree();
            dictionary.CreateDictionaryHash();

            gb = new GameBoard();
            gb.Roll();
        }
Пример #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // PrefixTree takes a few seconds to create, so do it here
            dictionary = new PrefixTree();
            dictionary.CreateDictionaryHash();

            const bool runUnitTests = true;

            if (runUnitTests)
            {
                Content = UnitTestSystem.CreateTestPage();
                IMobileTestPage imtp =
                    Content as IMobileTestPage;

                if (imtp != null)
                {
                    BackKeyPress += (x, xe) => xe.Cancel =
                        imtp.NavigateBack();
                }
            }
        }