Example #1
0
        private void StartTransaction_Load(object sender, EventArgs e)
        {
            LastRequests = new LastRequests
            {
                LastTransactionStart = new Fixtures.TransactionStart(ClientService)
                                       .GetFixtureNoProductLines()
            };

            // load
            tbAmount.Text        = LastRequests.LastTransactionStart.Amount.ToString();
            tbIP.Text            = LastRequests.LastTransactionStart.IPAddress;
            tbReturn.Text        = LastRequests.LastTransactionStart.ReturnUrl;
            tbExchange.Text      = LastRequests.LastTransactionStart.Transaction.OrderExchangeUrl;
            tbPaymentOption.Text = LastRequests.LastTransactionStart.PaymentOptionId.ToString();
            tbDesc.Text          = LastRequests.LastTransactionStart.Transaction.Description;

            tbUserlang.Text = LastRequests.LastTransactionStart.Enduser.Language;
            tbInitials.Text = LastRequests.LastTransactionStart.Enduser.Initials;
            tbLastname.Text = LastRequests.LastTransactionStart.Enduser.Lastname;
            tbGender.Text   = EnumUtil.ToEnumString((Gender)LastRequests.LastTransactionStart.Enduser.Gender);
            //tbDOB.Text = ((DateTime)LastRequests.LastTransactionStart.Enduser.BirthDate).ToString("dd-MM-yyyy");
            dateTimePicker1.Value = (DateTime)LastRequests.LastTransactionStart.Enduser.BirthDate;
            tbPhone.Text          = LastRequests.LastTransactionStart.Enduser.PhoneNumber;
            tbIBAN.Text           = LastRequests.LastTransactionStart.Enduser.IBAN;
            tbEmail.Text          = LastRequests.LastTransactionStart.Enduser.EmailAddress;
        }
Example #2
0
        public Form1(IServiceProvider serviceProvider, IOptions <AppSettings> settings, IClientService clientService, ILoggerFactory logger)
        {
            InitializeComponent();

            ServiceProvider = serviceProvider;
            ClientService   = clientService;
            Logger          = logger.CreateLogger <Form1>();
            Settings        = settings.Value;

            LastRequests     = new LastRequests();
            StartTransaction = new StartTransaction(clientService);
        }