private void Schedules_Load(object sender, EventArgs e) { BeneficairyList = BeneficiaryController.GetBeneficiarys(user.RsaID); PaymentListF = PaymentsController.GetPayments(user.RsaID); foreach (Payment item in PaymentListF) { //DateTime payDate = DateTime.ParseExact(item.PayDate, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture); //if (payDate > DateTime.Now || item.Recurring == true) //{ PaymentList.Add(item); //} } if (CryptoController.GetUserCrypto(user.RsaID) != null) { userCrypto = CryptoController.GetUserCrypto(user.RsaID); } else { userCrypto = new Crypto("", "", 0, "", user.RsaID); } UserPaymentAccountList = PaymentsAccountController.SearchUserPaymentAcount(user.RsaID); UserCardList = CardController.RetrveCards(user.RsaID); FillPaymentsDatagrid(PaymentList); BeneficairyList = BeneficiaryController.GetBeneficiarys(user.RsaID); FillBeneficiaryDatagrid(BeneficairyList); popUcb(); }
private void Profile_Load(object sender, EventArgs e) { //populate mar dei random fields van btc if (CryptoController.GetUserCrypto(user.RsaID) != null) { UserCrypto = CryptoController.GetUserCrypto(user.RsaID); } else { UserCrypto = new Crypto("", "", 0, "", user.RsaID); } UserCardList = CardController.RetrveCards(user.RsaID); UserEFTList = PaymentsAccountController.SearchUserPaymentAcount(user.RsaID); //sf txtWalletName.Text = UserCrypto.WaletName; txtWalletCode.Text = UserCrypto.Waletaddress; txtWalletAmount.Text = UserCrypto.Amount.ToString(); //fill datagrids FillUserEFTDatagrid(UserEFTList); FillUserCardDatagrid(UserCardList); popID(); }
private void Payments_Load(object sender, EventArgs e) { if (CryptoController.GetUserCrypto(user.RsaID) == null) { userCrypto = new Crypto("", "", 0, "", user.RsaID); } else { userCrypto = CryptoController.GetUserCrypto(user.RsaID); } history = HistoryController.getHistory(user.RsaID); scheduals = PaymentsController.GetPayments(user.RsaID); foreach (Payment item in history) { ALLPAY.Add(item); } foreach (Payment item in scheduals) { ALLPAY.Add(item); } BeneficairyList = BeneficiaryController.GetBeneficiarys(user.RsaID); UserPaymentAccountList = PaymentsAccountController.SearchUserPaymentAcount(user.RsaID); UserCardList = CardController.RetrveCards(user.RsaID); FillBeneficiaryDatagrid(BeneficairyList); popUcb(); }