Esempio n. 1
0
 public Filepicker_io()
 {
     //string upload_uri = FILEPICKER_BASEURL + "/api/store/S3?key=" + FILEPICKER_APIKEY;
     //BTR = new BackgroundTransferRequest(new Uri(upload_uri));
     //BTR.TransferStatusChanged += BTR_TransferStatusChanged;
     //BTR.TransferProgressChanged += BTR_TransferProgressChanged;
     //BTR.Method = "POST";
     _heroku = new Heroku();
 }
Esempio n. 2
0
        void DataLoader_DoWork(object sender, DoWorkEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                ToggleProgressIndicator();
            });
            //CurrentCarList = new ObservableCollection<CarListItem>();
            CurrentCarList = (ObservableCollection <CarListItem>)e.Argument;
            var carsInDb = from carInfo cInfo in App.ViewModel.Database.carInfo
                           select cInfo;
            var         carsindbarray = carsInDb.ToArray();
            CarListItem cl;

            foreach (carInfo c in carsindbarray)
            {
                cl = new CarListItem
                {
                    Year  = c.CarYear,
                    Make  = c.CarMake,
                    Model = c.CarModel,
                    Lic   = c.CarLic,
                    ID    = c.CarID
                };
                CurrentCarList.Add(cl);
            }

            //listBox1.ItemsSource = CurrentCarList;
            //ErrorLogging.Analytics(this.GetType().ToString(), "Mainpage", e.NavigationMode.ToString(), string.Empty);

            string userid, email;

            IsolatedStorageSettings.ApplicationSettings.TryGetValue("userid", out userid);
            IsolatedStorageSettings.ApplicationSettings.TryGetValue("email", out email);
            if (userid != null && email != null)
            {
                _heroku = new Heroku();
                _heroku.UpdateUser(email, userid);
            }
        }