private async Task SetDataAsync() { try { safeList = await SafeBoxBussines.GetAllAsync(); FillBank(); FillSandouq(); lblDateNow.Text = cls?.DateSh; txtName.Text = cls?.PayerName; txtNaqdPrice.Text = cls?.NaqdPrice.ToString("N0"); txtBankPrice.Text = cls?.BankPrice.ToString("N0"); if (cls?.Guid != Guid.Empty) { cmbBank.SelectedValue = cls?.BankSafeBoxGuid; cmbNaqd.SelectedValue = cls?.NaqdSafeBoxGuid; } txtFishNo.Text = cls?.FishNo; txtCheckPrice.Text = cls?.Check.ToString("N0"); txtCheckNo.Text = cls?.CheckNo; txtSarResid.Text = cls?.SarResid; txtBankName.Text = cls?.BankName; txtDesc.Text = cls?.Description; fPrice = cls?.TotalPrice ?? 0; } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }
private async Task LoadDataAsync(bool status, string search = "") { try { list = await SafeBoxBussines.GetAllAsync(); Search(search, status); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }