private void InitParameters()
    {
        PaymentId = Request.QueryString["PaymentId"];
        Ticket = Request.QueryString["Ticket"];

        if (string.IsNullOrEmpty(PaymentId) || string.IsNullOrEmpty(Ticket))
            throw new ArgumentException("MISSING_REQUIRED_PARAMETERS");

        if (Model == null)
        {
            Model = new ViewPayment();
            Model.Initialize(Main, long.Parse(PaymentId), long.Parse(Ticket));
        }
    }
示例#2
0
    private void InitModel()
    {
        bool init = false;

        if (Model == null)
        {
            init = true;
        }
        else if (Model.PaymentId != PaymentId)
        {
            init = true;
        }

        if (init)
        {
            Model = new ViewPayment();
            Model.Initialize(Main, long.Parse(PaymentId), long.Parse(Ticket));
        }
    }