コード例 #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            this.allTests = TestStore.CreateTests();
            if (this.appBtnBack == null)
            {
                var appBar = this.ApplicationBar;
                foreach (ApplicationBarIconButton button in appBar.Buttons)
                {
                    switch (button.Text.ToLowerInvariant())
                    {
                    case "test groups":
                        this.appBtnBack = button;
                        break;

                    case "reset":
                        this.appBtnReset = button;
                        break;

                    case "upload logs":
                        this.appBtnUploadLogs = button;
                        break;

                    case "run tests":
                        this.appBtnRunTests = button;
                        break;
                    }
                }
            }
        }
コード例 #2
0
        public MainPage()
        {
            this.InitializeComponent();
            this.allTests = TestStore.CreateTests();

            OnNavigatedTo(null);
        }
コード例 #3
0
 public MainPage()
 {
     this.InitializeComponent();
     this.allTests = TestStore.CreateTests();
 }