public async void CallWebserviceForOrdersList() { try { if (CrossConnectivity.Current.IsConnected) { CustomProgressDialog.ShowProgDialog(mActivity, mActivity.Resources.GetString(Resource.String.loading)); ledgerOrderList = await WebServiceMethods.GetOrders(mSharedPreferencesManager.GetString(ConstantsDroid.USER_ID_PREFERENCE, ""), txt_from_date.Text, txt_to_date.Text); InitailizeOrderListAdapter(ledgerOrderList); CustomProgressDialog.HideProgressDialog(); } else { UtilityDroid.GetInstance().ShowAlertDialog(mActivity, Resources.GetString(Resource.String.error_alert_title), Resources.GetString(Resource.String.alert_message_no_network_connection), Resources.GetString(Resource.String.alert_cancel_btn), Resources.GetString(Resource.String.alert_ok_btn)); } } catch (Exception ex) { CustomProgressDialog.HideProgressDialog(); UtilityDroid.GetInstance().ShowAlertDialog(mActivity, Resources.GetString(Resource.String.error_alert_title), Resources.GetString(Resource.String.alert_message_error), Resources.GetString(Resource.String.alert_cancel_btn), Resources.GetString(Resource.String.alert_ok_btn)); } }
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")); } }