示例#1
0
        public void NavigateTo(string item)
        {
            Page page = new Page();

            menuPage.Menu.SelectedItem = item;

            switch (item)
            {
            case "Refer a contractor":
                page = new ContractorPage();
                break;

            case "My contractors":
                page = new MyContractorPage();

                break;

            case "Amend my details":
                page = new AmendDetailsPage();
                break;

            case "Terms and conditions":
                DependencyService.Get <FormSample.Helpers.Utility.IUrlService> ().OpenUrl(Utility.PDFURL);
                page = new HomePage();
                menuPage.Menu.SelectedItem = "Home";
                break;

            case "About us":
                page = new AboutusPage();
                break;

            case "Contact us":
                page = new ContactUsPage();
                break;

            case "Take home pay calculator":
                page = new CalculatorPage();
                break;

            case "Weekly pay chart":
                page = new ChartPage();
                break;

//			case "Log out":
//				Settings.GeneralSettings = string.Empty;
//				App.Logout ();
//				break;
            default:
                //menuPage.Menu.SelectedItem = item;
                page = new HomePage();
                break;
            }
            this.Detail      = new NavigationPage(page);
            this.IsPresented = false;
            isFirstTime      = false;
        }
示例#2
0
        public void NavigateTo(string item)
        {
            Page page = new HomePage();

            switch (item)
            {
            case "Home":
                page = new HomePage();
                break;

            case "Refer a contractor":
                page = new ContractorPage();
                break;

            case "My contractors":
                page = new MyContractorPage();
                break;

            //case "Amend details":
            //    master.Detail = new NavigationPage(new ChartPage()) { BarBackgroundColor = App.NavTint };
            //    break;
            //case "Terms & Conditions":
            //    master.Detail = new NavigationPage(new ChartPage()) { BarBackgroundColor = App.NavTint };
            //    break;
            case "About us":
                page = new AboutusPage();
                break;

            case "Contact us":
                page = new ContactUsPage();
                break;

            case "Take home pay calculator":
                page = new CalculatorPage();
                break;

            case "Weekly pay chart":
                page = new ChartPage();
                break;

            case "Logout":
                Settings.GeneralSettings = string.Empty;
                // page = new LoginPage();
                break;
            }

            this.Detail      = new NavigationPage(page);
            this.IsPresented = false;
        }