Ejemplo n.º 1
0
        public void login()
        {
            loadingOverlay = Controls.ProgressDialog(this, "Attempting Login...");
            //this.View.Add (loadingOverlay);

            Async.BackgroundProcess(bw_Login, bw_LoginCompleted, new loginCredentials(txtUserName.Text, txtPassword.Text));
        }
Ejemplo n.º 2
0
        void SelectedAssets(List <ALAsset> assets)
        {
            //var results = new List<AssetResult> (assets.Count);

            loadingOverlay = Controls.ProgressDialog(this, "Loading Images, Please Wait");
            Async.BackgroundProcess(bw_SaveMulti, bw_SaveMultiCompleted, assets);
        }
Ejemplo n.º 3
0
 private void Done()
 {
     this.InvokeOnMainThread(delegate {
         loadingOverlay = Controls.ProgressDialog(this, "Cleaning Temporary Images");
         Async.BackgroundProcess(bw_CleanTemp, bw_CleanTempCompleted);
     });
 }
Ejemplo n.º 4
0
 private void explodeClicked()
 {
     SaveVehicle();             //save the vehicle before exploding so that we get the latest VIN entered.
     Controls.WifiDialog("You are not connected to WiFi.  Are you sure you want to explode the VIN?", delegate {
         loadingOverlay = Controls.ProgressDialog(this, "Loading Vehicle Data");
         Async.BackgroundProcess(bw_ExplodeVIN, bw_ExplodeVINComplete);
     });
 }
Ejemplo n.º 5
0
        private void ChangeDealershipClicked()
        {
            int UserID = (int)NSUserDefaults.StandardUserDefaults.IntForKey("UserID");

            Console.WriteLine("UserID=" + UserID);
            loadingOverlay = Controls.ProgressDialog(this, "Loading Dealers...");
            Async.BackgroundProcess(bw_GetDealers, bw_GetDealersCompleted, UserID);
        }
Ejemplo n.º 6
0
        private void CheckDealershipID()
        {
            Vehicle v = LoadVehicleFromDatabase();

            if (v.DealershipID == null || v.DealershipID == 0)
            {
                int UserID = (int)NSUserDefaults.StandardUserDefaults.IntForKey("UserID");
                loadingOverlay = Controls.ProgressDialog(this, "Loading Dealers...");
                Async.BackgroundProcess(bw_GetDealers, bw_GetDealersCompleted, UserID);
            }
        }
Ejemplo n.º 7
0
        public static LoadingOverlay ProgressDialog(UIViewController controller, string loadingMessage)
        {
            var bounds = UIScreen.MainScreen.Bounds;

            if (UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeLeft || UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeRight)
            {
                bounds.Size = new CoreGraphics.CGSize(bounds.Size.Height, bounds.Size.Width);
            }

            LoadingOverlay overlay = new LoadingOverlay(bounds, loadingMessage);

            controller.View.Add(overlay);

            return(overlay);
        }
Ejemplo n.º 8
0
        private void DownloadClicked(object sender, EventArgs e)
        {
            if (selectedVehicleIds.Count() <= 0)
            {
                Controls.OkDialog("No Vehicles Selected", "You must select at least 1 vehicle to download.");
                return;
            }

            foreach (int id in selectedVehicleIds)
            {
                Console.WriteLine("selectedId=" + id);
            }

            loadingOverlay = Controls.ProgressDialog(this, "Downloading Vehicles");
            Async.BackgroundProcess(bw_DownloadVehicles, bw_DownloadVehiclesCompleted);
        }
Ejemplo n.º 9
0
 private void LoadVehicles()
 {
     loadingOverlay = Controls.ProgressDialog(this, "Loading Vehicles");
     Async.BackgroundProcess(bw_LoadVehicles, bw_LoadVehiclesCompleted);
 }
Ejemplo n.º 10
0
        private void downloadAssets()
        {
            loadingOverlay = Controls.ProgressDialog(this, "Downloading Assets...");

            Async.BackgroundProcess(bw_GetVehicleAssets, bw_GetVehicleAssetsCompleted);
        }