public async Task CallWebserviceForOrdersList() { try { if (IosUtility.IsReachable()) { IosUtility.showProgressHud(""); var ledgerOrderItemList = await WebServiceMethods.GetLedgerOrderItems(LedgerOrderObj.CompCode, LedgerOrderObj.JournalNo); LedgerOrderObj.LedgerOrderItems = ledgerOrderItemList; IosUtility.hideProgressHud(); } } catch (Exception ex) { IosUtility.hideProgressHud(); IosUtils.IosUtility.showAlertWithInfo(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSErrorTitle", "LSErrorTitle"), IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSUnknownError", "LSErrorTitle")); } }
public async void CallWebserviceForOrdersList() { try { if (IosUtility.IsReachable()) { IosUtility.showProgressHud(""); ledgerOrderList = await WebServiceMethods.GetOrders(Settings.UserId, IBStartDateTxt.Text, IBEndDateTxt.Text); IBContntTbl.ReloadData(); IosUtility.hideProgressHud(); } } catch (Exception ex) { IosUtility.hideProgressHud(); IosUtils.IosUtility.showAlertWithInfo(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSErrorTitle", "LSErrorTitle"), IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSUnknownError", "LSErrorTitle")); } }