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); }
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)); }
private void Done() { this.InvokeOnMainThread(delegate { loadingOverlay = Controls.ProgressDialog(this, "Cleaning Temporary Images"); Async.BackgroundProcess(bw_CleanTemp, bw_CleanTempCompleted); }); }
public void CameraCallBack(NSDictionary dic) { Async.BackgroundProcess(bw_CameraSaveImage, bw_CameraSaveImageCompleted, new CameraHolder() { CameraImage = (UIImage)dic.Values[0], LoadingView = showLoadingOverlay() }); }
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); }); }
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); }
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 }); }
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); } }
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 }); }
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); }
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 }); }
private void LoadVehicles() { loadingOverlay = Controls.ProgressDialog(this, "Loading Vehicles"); Async.BackgroundProcess(bw_LoadVehicles, bw_LoadVehiclesCompleted); }
private void downloadAssets() { loadingOverlay = Controls.ProgressDialog(this, "Downloading Assets..."); Async.BackgroundProcess(bw_GetVehicleAssets, bw_GetVehicleAssetsCompleted); }