コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: huynguyen1412/Phone
        // 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();
                }
            }
        }