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)); }
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); }
private void Done() { this.InvokeOnMainThread(delegate { loadingOverlay = Controls.ProgressDialog(this, "Cleaning Temporary Images"); Async.BackgroundProcess(bw_CleanTemp, bw_CleanTempCompleted); }); }
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); }
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); } }
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); }
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 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); }