/// <summary> /// Method Name : BindMoveData /// Author : Hiren Patel /// Creation Date : 30 Dec 2017 /// Purpose : To bind Move data with UI element /// Revision : /// </summary> private async Task BindMoveData() { string errorMessage = string.Empty; try { if (this.ParentViewController != null) { parent = this.ParentViewController as JKTabController; loadingOverlay = UIHelper.ShowLoadingScreen(parent.View); } APIResponse <MoveDataModel> response = await moveService.GetMoveData(UtilityPCL.LoginCustomerData.CustomerId); loadingOverlay.Hide(); if (response.STATUS) { if (UtilityPCL.IsMoveActive(response.DATA.IsActive)) { MoveDataModel moveDataModel = response.DATA; SetMoveAddressAndValueDataToUILabel(moveDataModel); if (moveDataModel.MyServices != null) { UIHelper.BindMyServiceData(moveDataModel.MyServices, scrollviewMyServices, View); } CheckStatusReason(moveDataModel); scrollview.Hidden = false; } else { scrollview.Hidden = true; UIHelper.ShowMessage(response.Message); } } else { scrollview.Hidden = true; errorMessage = response.Message; } } catch (Exception error) { errorMessage = error.Message; } finally { if (!string.IsNullOrEmpty(errorMessage)) { ResetDashBoardData(); UIHelper.ShowAlertMessage(this, errorMessage); } loadingOverlay.Hide(); } }
public async override void ViewDidLoad() { base.ViewDidLoad(); UIHelper.CallingScreenContactUs = JKMEnum.UIViewControllerID.UINavigationDashboard; if (!string.IsNullOrEmpty(UtilityPCL.LoginCustomerData.CustomerId) && (!string.IsNullOrWhiteSpace(UtilityPCL.LoginCustomerData.CustomerId))) { UIHelper.SaveCustomerIDInCache(UtilityPCL.LoginCustomerData.CustomerId); } InitilizeIntarface(); ResetDashBoardData(); if (this.ParentViewController != null) { parent = this.ParentViewController as JKTabController; scrollViewIntro.Frame = parent.View.Frame; parent.View.Add(scrollViewIntro); } scrollViewIntro.Hidden = !HasIntroPagePermission(); await BindMoveData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); InitilizeIntarface(); NavigationItem.Title = "More"; CGSize temp1 = new CGSize(MenuView.Frame.Width, MenuView.Frame.Height); CGPoint temp = new CGPoint(scrollviewOption.Frame.Width - 180, scrollviewOption.Frame.Height - (MenuView.Frame.Height + 55)); originalLocation = new CGRect(temp, temp1); temp1 = new CGSize(MenuView.Frame.Width, MenuView.Frame.Height); temp = new CGPoint(scrollviewOption.Frame.Width - 180, scrollviewOption.Frame.Height); resetLocation = new CGRect(temp, temp1); if (this.ParentViewController != null) { parent = this.ParentViewController as JKTabController; scrollviewOption.Frame = parent.View.Frame; parent.View.Add(scrollviewOption); } }