public override void UpdateData()
        {
            base.UpdateData();

            BackgroundContainer?.SetBackgroundColor(ColorConstants.BackroundContent);

            View1?.SetBackgroundColor(ColorConstants.SelectorHome);
            View2?.SetBackgroundColor(ColorConstants.SelectorHome);
            View3?.SetBackgroundColor(ColorConstants.SelectorHome);
            View4?.SetBackgroundColor(ColorConstants.SelectorHome);
            View5?.SetBackgroundColor(ColorConstants.SelectorHome);
            View6?.SetBackgroundColor(ColorConstants.SelectorHome);
            View7?.SetBackgroundColor(ColorConstants.SelectorHome);
            View8?.SetBackgroundColor(ColorConstants.SelectorHome);

            ImageQR?.SetImageFromResource(DrawableConstants.QRBlurryIcon);

            if (ImageScan != null)
            {
                ImageScan.Visibility = ViewState.Visible;
                ImageScan?.SetImageFromResource(DrawableConstants.QRWaitIcon);
            }

            if (ConfirmTableText != null)
            {
                ConfirmTableText.Click -= ConfirmTableText_Click;
                ConfirmTableText.Click += ConfirmTableText_Click;

                ConfirmTableText.Text = RCode.ConfirmTable.ToUpperInvariant();
                ConfirmTableText.SetBackgroundColor(ColorConstants.BlackColor);
                ConfirmTableText.SetSelectedColor(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent50));
                ConfirmTableText.SetTextColor(ColorConstants.WhiteColor);
                ConfirmTableText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
            }

            if (TitleText != null)
            {
                TitleText.Text = RCode.QrCode;
                TitleText.SetTextColor(ColorConstants.WhiteColor);
                TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18);
            }

            if (TableNrText != null)
            {
                TableNrText.Text = RCode.TableNo;
                TableNrText.SetTextColor(ColorConstants.WhiteColor);
                TableNrText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18);
            }

            if (TableNrValueText != null)
            {
                TableNrValueText.Visibility = ViewState.Invisible;

                TableNrValueText.Text = string.Empty;
                TableNrValueText.SetTextColor(ColorConstants.SelectorHome);
                TableNrValueText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size36);
            }

            if (ImageQR.IsNull())
            {
                return;
            }
            ImageQR.Click -= ImageQR_Click;
            ImageQR.Click += ImageQR_Click;
        }
Example #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        for (int i = 1; i <= 23; i++)
        {
            string temp = "RadioButton" + i;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View1.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["b"] = rad.Text;
            }
        }



        for (int j = 24; j <= 47; j++)
        {
            string temp = "RadioButton" + j;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View2.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["c"] = rad.Text;
            }
        }


        for (int k = 48; k <= 61; k++)
        {
            string temp = "RadioButton" + k;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View3.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["d"] = rad.Text;
            }
        }


        for (int k = 62; k <= 77; k++)
        {
            string temp = "RadioButton" + k;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View4.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["e"] = rad.Text;
            }
        }

        for (int k = 78; k <= 85; k++)
        {
            string temp = "RadioButton" + k;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View5.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["f"] = rad.Text;
            }
        }


        for (int k = 86; k <= 91; k++)
        {
            string temp = "RadioButton" + k;

            RadioButton rad = new RadioButton();
            rad = (RadioButton)View6.FindControl(temp);
            if (rad.Checked == true)
            {
                Session["g"] = rad.Text;
            }
        }



        Response.Redirect("http://localhost:49347/volcania/CustomizedBooking.aspx");
    }