public SectionPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
                 
 }
 public CreateLocationPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
示例#3
0
        // oauth 2.0 clientID: NzdhOWE3ZDgzYmZjN2I1OTdlMDM1NjRmNzFhMTlhN2Iz
        // oauth 2.0 secret: 05tCh5gI4PvfpntkUB17P1ZWWYFJER9nUBp9ds6U



        // test search url with json response: https://api.delivery.com/merchant/search/delivery?client_id=NzdhOWE3ZDgzYmZjN2I1OTdlMDM1NjRmNzFhMTlhN2Iz&address=130NottinghamRoad13210




        //String authenticationurl = "https://sandbox.delivery.com/third_party/authorize?client_id=MjM2NDJkNDk0NjMxZmFlZjNjZTZhZWY2YWEwYTJhNGJh&redirect_uri=http://localhost&response_type=code&scope=global&state=hmm";
        
        public HubPage()
        {
            this.InitializeComponent();

            // Hub is only supported in Portrait orientation
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

            this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;



            // API 
            // https://api.delivery.com/merchant/search/delivery?client_id=abc123&address=199WaterSt10038


            HttpClient client = new HttpClient();

            

            // temporary for now...
            address = "130NottinghamRd13210";

            string url = "https://api.deliver.com/merchant/search/delivery" +
                "?client_id={0}" +
                "&address={1}";

            var baseurl = string.Format(url, client_id, address);

            //string result = await client.GetStringAsync(baseurl);
        }
        public ItemPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        } 
示例#5
0
        public HubPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;

            merchantListSection.Width = 0;
            merchantPreviewSection.Width = 0;
            orderButton.Opacity = 0;
            orderButton.IsEnabled = false;
        }
        public LoginPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            //Launch_Click();

            System.Uri StartUri = new Uri(authenticationurl);
            webbrowser.Navigate(StartUri);

            //Uri current;
            //while (true)
            //{
            //    current = webbrowser.Source;
            //}


            //webbrowser.scri
            //webbrowser.Url.ToString();
            //webbrowser.Navigated += new EventHandler<NavigationEventArgs>(WebControlNavigatesTo);
        }
        public LoginPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;

            // retrieve authorization code by allowing the user to log in
            Get_Authorization_Code();   // calls Get_Access_Token
            
        }