public MainPage()
        {
            this.InitializeComponent();
            this.allTests = TestStore.CreateTestGroups();

            OnNavigatedTo(null);
        }
Example #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            this.allTestGroups = TestStore.CreateTestGroups();
            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;
                    }
                }
            }
        }