public void OnPickupPreferenceBeingCreated(object sender, EventArgs e)
        {
            var args = e as DeliveryOptionEventArgs;

            lblErrors.Text = "";
            SourceCommand  = new PickupCommand(PickupCommandType.ADD);
            RenderCommandCentricView(SourceCommand);
        }
        public void OnPickupPreferenceBeingDeleted(object sender, EventArgs e)
        {
            lblErrors.Text = "";
            SourceCommand  = new PickupCommand(PickupCommandType.DELETE);
            var args = e as DeliveryOptionEventArgs;

            WorkedUponDeliveryOptionId = args.DeliveryOptionId;
            Session["IDToDelete"]      = args.DeliveryOptionId;
            PickupLocationDescription  = args.Description;
            RenderCommandCentricView(SourceCommand);
        }
示例#3
0
        public void OnPickupPreferenceBeingCreated(object sender, EventArgs e)
        {
            var args = e as DeliveryOptionEventArgs;

            if (args != null)
            {
                hfDiableSavedCheckbox.Value = args.DisableSaveAddressCheckbox.ToString();
            }

            lblErrors.Text = "";
            SourceCommand  = new PickupCommand(PickupCommandType.ADD);
            RenderCommandCentricView(SourceCommand);
        }
        public void RenderCommandCentricView(PickupCommand command)
        {
            this.SourceCommand = command;
            switch (this.SourceCommand.Mode)
            {
            case PickupCommandType.ADD:
                RenderAddPickupView();
                return;

            case PickupCommandType.DELETE:
                RenderDeletePickupView();
                return;
            }
        }
        public void OnPickupPreferenceBeingCreated(object sender, EventArgs e)
        {
            //if ((Page as ProductsBase).Locale != "es-MX")
            //    return;

            var args = e as DeliveryOptionEventArgs;

            if (args != null)
            {
                hfDiableSavedCheckbox.Value = args.DisableSaveAddressCheckbox.ToString();
            }

            lblErrors.Text = "";
            //Set the MODE & Load respective controlset
            SourceCommand = new PickupCommand(PickupCommandType.ADD);
            RenderCommandCentricView(SourceCommand);
        }
示例#6
0
        public void OnPickupPreferenceBeingDeleted(object sender, EventArgs e)
        {
            if ((Page as ProductsBase).Locale != "es-CL")
            {
                return;
            }

            lblErrors.Text = "";
            SourceCommand  = new PickupCommand(PickupCommandType.DELETE);
            var args = e as DeliveryOptionEventArgs;

            WorkedUponDeliveryOptionId = args.DeliveryOptionId;
            Session["IDToDelete"]      = args.DeliveryOptionId;
            PickupLocationDescription  = args.Description;
            CourierType = args.CourierType;

            RenderCommandCentricView(SourceCommand);
        }