Ejemplo n.º 1
0
        private void saveBttn_Click(object sender, EventArgs e)
        {
            PaymentDetailsPresenter presenter = new PaymentDetailsPresenter(this);

            if (presenter.StorePaymentDetails())
            {
                //OK - dodano
            }
            else
            {
                MessageBox.Show("Wystąpił błąd!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        protected void SubmitPaymentDetails_OnClick(object sender, EventArgs e)
        {
            PaymentDetailsPresenter presenter = new PaymentDetailsPresenter(this);

            if (presenter.StorePaymentDetails())
            {
                Response.Redirect("~/PaymentComplete.aspx");
            }

            else
            {
                Response.Write("An Error Occured!");
            }
        }