public async Task StartProgressBar(string title = "", double opacity = 0.6) { // Loading settings if (string.IsNullOrEmpty(title)) { title = AppResources.MoveDispatcherStatus; } Configurations.LoadingConfig = new LoadingConfig { IndicatorColor = HexColor, OverlayColor = Color.Black, Opacity = opacity, DefaultMessage = title, }; await Loading.Instance.StartAsync(async progress => { string dispId = dispList[PickerDisp.SelectedIndex].ID.ToString(); CommonResult result = await server.ChangeDispatcherConst(_Request.ID.ToString(), dispId); if (result.Error == null) { if (!string.IsNullOrWhiteSpace(BordlessEditor.Text)) { result = await server.AddMessageConst(BordlessEditor.Text, _Request.ID.ToString(), true); } await ShowToast(AppResources.MoveDispatcherSuccess); MessagingCenter.Send <Object>(this, "UpdateAppCons"); await PopupNavigation.Instance.PopAsync(); } else { await ShowToast(result.Error); } }); }