コード例 #1
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);
        }
コード例 #2
0
ファイル: Login.cs プロジェクト: robwharram/BoostITiOS
        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));
        }
コード例 #3
0
 private void Done()
 {
     this.InvokeOnMainThread(delegate {
         loadingOverlay = Controls.ProgressDialog(this, "Cleaning Temporary Images");
         Async.BackgroundProcess(bw_CleanTemp, bw_CleanTempCompleted);
     });
 }
コード例 #4
0
ファイル: DamageAdd.cs プロジェクト: robwharram/BoostITiOS
 public void CameraCallBack(NSDictionary dic)
 {
     Async.BackgroundProcess(bw_CameraSaveImage, bw_CameraSaveImageCompleted, new CameraHolder()
     {
         CameraImage = (UIImage)dic.Values[0], LoadingView = showLoadingOverlay()
     });
 }
コード例 #5
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);
     });
 }
コード例 #6
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);
        }
コード例 #7
0
ファイル: Photos.cs プロジェクト: robwharram/BoostITiOS
        public void CameraCallBack(NSDictionary dic)
        {
            Console.WriteLine("camera callback");

            Async.BackgroundProcess(bw_CameraSaveImage, bw_CameraSaveImageCompleted, new CameraHolder()
            {
                CameraImage = (UIImage)dic.Values[0], LoadingView = showLoadingOverlay(currentFileNumber), FileNumber = currentFileNumber
            });
        }
コード例 #8
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);
            }
        }
コード例 #9
0
ファイル: DamageAdd.cs プロジェクト: robwharram/BoostITiOS
        private void DisplayThumbnail()
        {
            if (string.IsNullOrWhiteSpace(damage.FileName))
            {
                btnImage.SetBackgroundImage(UIImage.FromBundle("nophoto.png"), UIControlState.Normal);
                return;
            }

            UIView loadingView = showLoadingOverlay();

            Async.BackgroundProcess(bw_getThumb, bw_getThumbCompleted, new ThumbHolder()
            {
                LoadingView = loadingView
            });
        }
コード例 #10
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);
        }
コード例 #11
0
ファイル: Photos.cs プロジェクト: robwharram/BoostITiOS
        private void DisplayThumbnail(int fileNumber)
        {
            Image image = listVehicleImages.FirstOrDefault(i => i.FileNumber == fileNumber);

            if (image == null)
            {
                btnArray [fileNumber].SetBackgroundImage(UIImage.FromBundle("nophoto.png"), UIControlState.Normal);
                return;
            }

            UIView loadingView = showLoadingOverlay(fileNumber);

            Async.BackgroundProcess(bw_getThumb, bw_getThumbCompleted, new ThumbHolder()
            {
                image = image, LoadingView = loadingView
            });
        }
コード例 #12
0
 private void LoadVehicles()
 {
     loadingOverlay = Controls.ProgressDialog(this, "Loading Vehicles");
     Async.BackgroundProcess(bw_LoadVehicles, bw_LoadVehiclesCompleted);
 }
コード例 #13
0
        private void downloadAssets()
        {
            loadingOverlay = Controls.ProgressDialog(this, "Downloading Assets...");

            Async.BackgroundProcess(bw_GetVehicleAssets, bw_GetVehicleAssetsCompleted);
        }